]> git.ipfire.org Git - thirdparty/git.git/commit
gitk: use <Button-3> for ctx menus on macOS with Tcl 8.7+
authorRuoyu Zhong <zhongruoyu@outlook.com>
Sun, 24 Aug 2025 10:07:58 +0000 (18:07 +0800)
committerRuoyu Zhong <zhongruoyu@outlook.com>
Sun, 24 Aug 2025 10:07:58 +0000 (18:07 +0800)
commit7c06c19e66e7654031eb50b72fd79c380fa54158
treea43f1df8d585cde3a4779b8ca6b2c58de245d874
parent93ff79ed417e8d1afa770b31721ad3640ed2d0ad
gitk: use <Button-3> for ctx menus on macOS with Tcl 8.7+

Commit d277e89f87fda01daa1e1a35fc1f7118678faa1f added special handling
on macOS (OS X) that makes button 2 the right mouse button. As per TIP
474 [1], Tcl 8.7 has swapped buttons 2 and 3 such that button 3 is made
the right mouse button as in other platforms. Therefore, the logic
should be updated to use button 3 on macOS with Tcl 8.7+.

[1]: https://core.tcl-lang.org/tips/doc/main/tip/474.md

Signed-off-by: Ruoyu Zhong <zhongruoyu@outlook.com>
gitk