diff options
author | Jens Lehmann <Jens.Lehmann@web.de> | 2010-02-02 23:11:28 +0100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2010-03-20 20:53:21 +1100 |
commit | decd0a1ea594232f3b84831104257a0225be0085 (patch) | |
tree | 8d8ead4e3464d9b567716b5aa25fc0848b429d10 | |
parent | 7963791e1f44f3053f47f98628cf1729030eab76 (diff) | |
download | git-decd0a1ea594232f3b84831104257a0225be0085.tar.gz git-decd0a1ea594232f3b84831104257a0225be0085.tar.xz |
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 <Jens.Lehmann@web.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>
-rwxr-xr-x | gitk | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -2383,6 +2383,8 @@ proc makewindow {} { } bindall <$::BM> "canvscan mark %W %x %y" bindall <B$::BM-Motion> "canvscan dragto %W %x %y" + bind all <$M1B-Key-w> {destroy [winfo toplevel %W]} + bind . <$M1B-Key-w> doquit bindkey <Home> selfirstline bindkey <End> sellastline bind . <Key-Up> "selnextline -1" @@ -2814,6 +2816,7 @@ proc keys {} { [mc "Gitk key bindings:"] [mc "<%s-Q> Quit" $M1T] +[mc "<%s-W> Close window" $M1T] [mc "<Home> Move to first commit"] [mc "<End> Move to last commit"] [mc "<Up>, p, i Move up one commit"] |