@matheusbsbs / matheus-bagliano / commits / 51b8c5021a
Fork 0

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>

Väinö Järvelä committed Aug 3, 2007 at 12:27 UTC 51b8c5021a19195e0f138832b081a356a2247bca
1 file changed +3
git-gui.sh
+3
@@ -1348,6 +1348,9 @@ unset i
1348 proc bind_button3 {w cmd} {
1349 bind $w <Any-Button-3> $cmd
1350 if {[is_MacOSX]} {
1351 + # Mac OS X sends Button-2 on right click through three-button mouse,
1352 + # or through trackpad right-clicking (two-finger touch + click).
1353 + bind $w <Any-Button-2> $cmd
1354 bind $w <Control-Button-1> $cmd
1355 }
1356 }