Skip to content

Commit 23cbe42

Browse files
committed
Merge branch 'py/console-close-esc'
Allow closing console window with Escape once the command is completed. * py/console-close-esc: git-gui: allow closing console window with Escape
2 parents d32e065 + 1e1ccbf commit 23cbe42

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)