From: Pratyush Yadav Date: Fri, 6 Dec 2019 21:46:31 +0000 (+0530) Subject: git-gui: allow closing console window with Escape X-Git-Tag: v2.25.0-rc2~6^2~1^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1e1ccbfdd3100a1bb656b11f973381ce4b69decf;p=thirdparty%2Fgit.git 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 --- diff --git a/lib/console.tcl b/lib/console.tcl index 1f3248ffd1..bb6b9c889e 100644 --- a/lib/console.tcl +++ b/lib/console.tcl @@ -203,6 +203,8 @@ method done {ok} { focus $w.ok } } + + bind $w "destroy $w;break" } method _sb_set {sb orient first last} {