Browse Source

git-gui: Added support for OS X right click

OS X sends Button-2 on a "real" right click, such as with a three
button mouse, or by using the two-finger trackpad click.

Signed-off-by: Väinö Järvelä <v@pp.inet.fi>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
maint gitgui-0.8.1
Väinö Järvelä 18 years ago committed by Shawn O. Pearce
parent
commit
51b8c5021a
  1. 3
      git-gui.sh

3
git-gui.sh

@ -1348,6 +1348,9 @@ unset i
proc bind_button3 {w cmd} { proc bind_button3 {w cmd} {
bind $w <Any-Button-3> $cmd bind $w <Any-Button-3> $cmd
if {[is_MacOSX]} { if {[is_MacOSX]} {
# Mac OS X sends Button-2 on right click through three-button mouse,
# or through trackpad right-clicking (two-finger touch + click).
bind $w <Any-Button-2> $cmd
bind $w <Control-Button-1> $cmd bind $w <Control-Button-1> $cmd
} }
} }

Loading…
Cancel
Save