Skip to content

Fix two-finger tap on macOS with Tk9#1856

Merged
windymilla merged 1 commit into
DistributedProofreaders:masterfrom
windymilla:test-tk9
May 16, 2026
Merged

Fix two-finger tap on macOS with Tk9#1856
windymilla merged 1 commit into
DistributedProofreaders:masterfrom
windymilla:test-tk9

Conversation

@windymilla
Copy link
Copy Markdown
Collaborator

@windymilla windymilla commented May 14, 2026

With Tk9, 2-finger tap is generating mouse 3, whereas it
generated mouse 2 with Tk9. Bind both of these, so it
should work with either Tk version.

Testing of debug version:
In Tk9 environment, and Tk8 environment, do two-finger tap on main text window, then look at output in the terminal window. Compare with Ctrl-click.

@windymilla windymilla requested a review from srjfoo May 14, 2026 12:36
@srjfoo
Copy link
Copy Markdown
Member

srjfoo commented May 16, 2026

ctrl+click got nothing on either Tk 8 or 9. (In other apps, ctrl+click and two-finger tap with my system setup get the same response.)

Tk8 two-finger tap: <ButtonPress event num=2 x=199 y=298> is typical, where the x/y coorinates change depending on where the touchpad pointer is located.

Tk9 two finger tap: <ButtonPress event num=3 x=199 y=298>, ditto.

Go figure? 🙄

With Tk9, 2-finger tap is generating mouse 3, whereas it
generated mouse 2 with Tk9. Bind both of these, so it
should work with either Tk version.
@windymilla windymilla changed the title Print "right-click" debug info Fix two-finger tap on macOS with Tk9 May 16, 2026
@windymilla windymilla merged commit 7e840a3 into DistributedProofreaders:master May 16, 2026
1 check passed
@windymilla windymilla deleted the test-tk9 branch May 16, 2026 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants