Skip to content

Commit

Permalink
Correct key bindings to Control-<foo>
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shawn O. Pearce committed May 24, 2007
1 parent 306fc12 commit 3d5793b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions git-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 {} {
Expand Down

0 comments on commit 3d5793b

Please sign in to comment.