Skip to content

Commit 1e1ccbf

Browse files
committed
git-gui: allow closing console window with Escape
This gives users a quick shortcut to close the window. But since the window can also show commands in progress, closing the window on Escape can give the perception that the command has been cancelled even though it hasn't been. So, only enable this binding when the command is done. Signed-off-by: Pratyush Yadav <[email protected]>
1 parent 2763530 commit 1e1ccbf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/console.tcl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ method done {ok} {
203203
focus $w.ok
204204
}
205205
}
206+
207+
bind $w <Key-Escape> "destroy $w;break"
206208
}
207209

208210
method _sb_set {sb orient first last} {

0 commit comments

Comments
 (0)