git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] git-gui: Added support for OS X right click

From
VJVäinö Järvelä <v@pp.inet.fi>
Date
Aug 3, 2007, 09:27 UTC
Message-ID
<C4431971-A1F1-463E-B238-D351FCBB57F8@pp.inet.fi>

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
Next: Shawn O. Pearce
Message 1 of 10 in “git-gui: Added support for OS X right click”
  1. git-gui: Added support for OS X right clickVäinö Järvelä, Aug 3, 2007
  2. Shawn O. PearceAug 4, 2007
  3. Jeff KingAug 4, 2007
  4. Shawn O. PearceAug 4, 2007
  5. Jeff KingAug 4, 2007
  6. Shawn O. PearceAug 5, 2007
  7. Linus TorvaldsAug 4, 2007
  8. Jeff KingAug 4, 2007
  9. Jeff KingAug 4, 2007
  10. Väinö JärveläAug 4, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.