add `y`or `Return` and `n` hotkeys to dismiss ask save confirmation dialog

This commit is contained in:
stefan schippers 2025-08-23 00:11:10 +02:00
parent 3b08bf8f7c
commit a9e4bc1300
1 changed files with 3 additions and 0 deletions

View File

@ -6169,6 +6169,9 @@ proc ask_save { {ask {save file?}} {cancel 1}} {
}
pack .dialog.l1 .dialog.f1 -side top -fill x
pack .dialog.f1.b1 -side left -fill x -expand yes
bind .dialog <Return> {.dialog.f1.b1 invoke}
bind .dialog <y> {.dialog.f1.b1 invoke}
bind .dialog <n> {.dialog.f1.b3 invoke}
if { $cancel} {
pack .dialog.f1.b2 -side left -fill x -expand yes
}