{"thread":{"id":"13840","subject":"Mac OSX and gitk right-click","startedAt":"2008-06-06T22:44:52Z","lastAt":"2008-06-07T07:20:07Z","messageCount":2,"participants":["Thomas Harning","Shawn O. Pearce"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"78979","messageId":"3215D250-73A0-422C-B104-2BE306778271@trustbearer.com","threadId":"13840","inReplyTo":null,"subject":"Mac OSX and gitk right-click","fromName":"Thomas Harning","fromEmail":"thomas.harning@trustbearer.com","sentAt":"2008-06-06T22:44:52Z","receivedAt":"2008-06-06T22:44:52Z","isPatch":false,"sender":{"key":"thomas.harning@trustbearer.com","avatar":null},"body":"gitk doesn't appear to have right-click support in OSX, but  \ngitgui-0.8.1 has it...\n\nThought I'd bring this up in case anybody has any fixes.  Currently  \ndigging through to see if I can make a quick fix...\n\n\n-- \nThomas Harning\nTrustBearer Labs\nTB OpenID: https://openid.trustbearer.com/harningt\n"},{"id":"79022","messageId":"20080607072007.GB12896@spearce.org","threadId":"13840","inReplyTo":"3215D250-73A0-422C-B104-2BE306778271@trustbearer.com","subject":"Re: Mac OSX and gitk right-click","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2008-06-07T07:20:07Z","receivedAt":"2008-06-07T07:20:07Z","isPatch":false,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Thomas Harning <thomas.harning@trustbearer.com> wrote:\n> gitk doesn't appear to have right-click support in OSX, but  \n> gitgui-0.8.1 has it...\n\nThat's because git-gui has this procedure\n\nproc bind_button3 {w cmd} {\n    bind $w <Any-Button-3> $cmd\n    if {[is_MacOSX]} {\n        # Mac OS X sends Button-2 on right click through three-button mouse,\n        # or through trackpad right-clicking (two-finger touch + click).\n        bind $w <Any-Button-2> $cmd\n        bind $w <Control-Button-1> $cmd\n    }\n}\n\nand uses it to configure the binding for the \"right-click\" scripts\nrather than calling \"bind $w <Any-Button-3> ...\" directly.  gitk\ndoes the latter, and thus fails on Mac OS X.\n\nI actually think its a bug in Tcl/Tk on Aqua that it doesn't treat\nControl-Click as a right click action, or that right mouse click\nis sent as button 2, but is 3 on ever other system.\n\n-- \nShawn.\n"}]}