From: Jens Lehmann Date: Tue, 2 Feb 2010 22:11:28 +0000 (+0100) Subject: gitk: Add Ctrl-W shortcut for closing the active window X-Git-Url: https://privyetmir.co.uk/gitweb.cgi?a=commitdiff_plain;h=decd0a1ea594232f3b84831104257a0225be0085;p=gitk gitk: Add Ctrl-W shortcut for closing the active window To make the user experience between git gui and gitk more homogeneous, use Ctrl-W in gitk for closing the active window. When closing the main window doquit is called for proper cleanup. Signed-off-by: Jens Lehmann Signed-off-by: Paul Mackerras --- diff --git a/gitk b/gitk index 1f36a3e..50773a3 100755 --- a/gitk +++ b/gitk @@ -2383,6 +2383,8 @@ proc makewindow {} { } bindall <$::BM> "canvscan mark %W %x %y" bindall "canvscan dragto %W %x %y" + bind all <$M1B-Key-w> {destroy [winfo toplevel %W]} + bind . <$M1B-Key-w> doquit bindkey selfirstline bindkey sellastline bind . "selnextline -1" @@ -2814,6 +2816,7 @@ proc keys {} { [mc "Gitk key bindings:"] [mc "<%s-Q> Quit" $M1T] +[mc "<%s-W> Close window" $M1T] [mc " Move to first commit"] [mc " Move to last commit"] [mc ", p, i Move up one commit"]