git-gui: Added support for OS X right click
[gitweb.git] / git-gui.sh
index 2c7eb3c25cd6a20268463f3fd5d7c272b31be8f6..29a790e481b8b309f1553449e1eb107745eaff6d 100755 (executable)
@@ -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
        }
 }