Skip to content

Commit 3d5793b

Browse files
committed
Correct key bindings to Control-<foo>
Alberto Bertogli reported on #git that git-gui was exiting with alt-q, while gitk on the same system was exiting with ctrl-q. That was not what I wanted. I really wanted M1B to be bound to the Control key on most non-Mac OS X platforms, but according to Sam Vilain M1 on most systems means alt. Since gitk always does control, I'm doing the same thing for all non-Mac OS X systems. Signed-off-by: Shawn O. Pearce <[email protected]>
1 parent 306fc12 commit 3d5793b

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

git-gui.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,15 +1206,12 @@ foreach class {Button Checkbutton Entry Label
12061206
}
12071207
unset class
12081208

1209-
if {[is_Windows]} {
1210-
set M1B Control
1211-
set M1T Ctrl
1212-
} elseif {[is_MacOSX]} {
1209+
if {[is_MacOSX]} {
12131210
set M1B M1
12141211
set M1T Cmd
12151212
} else {
1216-
set M1B M1
1217-
set M1T M1
1213+
set M1B Control
1214+
set M1T Ctrl
12181215
}
12191216

12201217
proc apply_config {} {

0 commit comments

Comments
 (0)