Pressing the rightmost button on my 3 button mouse generates a
Tk event saying button 2 was pressed, while pressing the middle
button generates an event saying button 3 was pressed. This is
on Aqua Tk 8.4.1. Other applications on my Mac, such as the X
server identify the rightmost button as button 3 and the middle
button as button 2. Only Tk appears to reverse buttons 2 and 3.
The following wish8.4 script will display the button number
associated with button presses.
bind . <ButtonPress> {puts "%b"}
Pressing my 3 mouse buttons from left to right, prints 1 3 2.
Logged In: NO
Submitted by Tom Goddard
goddard@cgl.ucsf.edu
Logged In: YES
user_id=243036
I had the same problem with a USB 3-button mouse under
8.4.1. I replaced the 3-button mouse with a Wheel mouse
and the buttons worked as expected, but now that I
upgraded to 8.4.4, they are back to being reversed.
Logged In: NO
Bug still present in 8.4.4. Tom Goddard
Logged In: NO
Same bug is present in Aqua Tk 8.5.2. Tom Goddard
Not present in Tk-Cocoa.