summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVäinö Järvelä <v@pp.inet.fi>2007-08-03 09:27:39 (GMT)
committerShawn O. Pearce <spearce@spearce.org>2007-08-04 06:47:30 (GMT)
commit51b8c5021a19195e0f138832b081a356a2247bca (patch)
tree7d5d61874aa784fb497a629cb152c93d39deed53
parenta13ee29b975d3a9a012983309e842d942b2bbd44 (diff)
downloadgit-51b8c5021a19195e0f138832b081a356a2247bca.zip
git-51b8c5021a19195e0f138832b081a356a2247bca.tar.gz
git-51b8c5021a19195e0f138832b081a356a2247bca.tar.bz2
git-gui: Added support for OS X right clickgitgui-0.8.1
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>
-rwxr-xr-xgit-gui.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/git-gui.sh b/git-gui.sh
index 2c7eb3c..29a790e 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -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
}
}