aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-05-24 02:33:13 -0400
committerShawn O. Pearce <spearce@spearce.org>2007-05-24 02:33:13 -0400
commit3d5793bf52223ccec40aff2839a3c5bad96bca8b (patch)
tree451b1f9158518f8306fcb426b24b69a1fc3e9105
parent306fc124621657234b21dce542496440d53147a6 (diff)
downloadgit-3d5793bf52223ccec40aff2839a3c5bad96bca8b.tar.gz
git-3d5793bf52223ccec40aff2839a3c5bad96bca8b.tar.xz
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>
-rwxr-xr-xgit-gui.sh9
1 files changed, 3 insertions, 6 deletions
diff --git a/git-gui.sh b/git-gui.sh
index 40f54e4da..cfc4c7f68 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -1206,15 +1206,12 @@ foreach class {Button Checkbutton Entry Label
}
unset class
-if {[is_Windows]} {
- set M1B Control
- set M1T Ctrl
-} elseif {[is_MacOSX]} {
+if {[is_MacOSX]} {
set M1B M1
set M1T Cmd
} else {
- set M1B M1
- set M1T M1
+ set M1B Control
+ set M1T Ctrl
}
proc apply_config {} {