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 <spearce@spearce.org>
Shawn O. Pearce committed
May 24, 2007 at 02:33 UTC
3d5793bf52223ccec40aff2839a3c5bad96bca8b
1 file changed
+3
-6
git-gui.sh
+3
-6
@@ -1206,15 +1206,12 @@ foreach class {Button Checkbutton Entry Label
1206
}
1207
unset class
1208
1209
-if {[is_Windows]} {
1210
- set M1B Control
1211
- set M1T Ctrl
1212
-} elseif {[is_MacOSX]} {
1209
+if {[is_MacOSX]} {
1210
set M1B M1
1211
set M1T Cmd
1212
} else {
1216
- set M1B M1
1217
- set M1T M1
1213
+ set M1B Control
1214
+ set M1T Ctrl
1215
}
1216
1217
proc apply_config {} {