git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] git-gui: Added support for OS X right click
@ 2007-08-03  9:27 Väinö Järvelä
  2007-08-04  6:55 ` Shawn O. Pearce
  0 siblings, 1 reply; 10+ messages in thread
From: Väinö Järvelä @ 2007-08-03  9:27 UTC (permalink / raw)
  To: Shawn O. Pearce; +Cc: git

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>
---
git-gui.sh |    3 +++
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
	}
}
--
1.5.2

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-08-05  2:49 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-03  9:27 [PATCH] git-gui: Added support for OS X right click Väinö Järvelä
2007-08-04  6:55 ` Shawn O. Pearce
2007-08-04  7:11   ` Jeff King
2007-08-04  7:33     ` Shawn O. Pearce
2007-08-04  7:41       ` Jeff King
2007-08-05  2:48         ` Shawn O. Pearce
2007-08-04 16:37     ` Linus Torvalds
2007-08-04 17:49       ` Jeff King
2007-08-04 17:58       ` Jeff King
2007-08-04 11:36   ` Väinö Järvelä

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).