Skip to content

Commit

Permalink
git-gui: Added support for OS X right click
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Väinö Järvelä authored and spearce committed Aug 4, 2007
1 parent a13ee29 commit 51b8c50
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions git-gui.sh
Expand Up @@ -1348,6 +1348,9 @@ unset i
proc bind_button3 {w cmd} {
bind $w <Any-Button-3> $cmd
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
}
}
Expand Down

0 comments on commit 51b8c50

Please sign in to comment.