#1394 Button 2 and 3 reversed, Aqua

obsolete: 8.4.1
closed-works-for-me
4
2011-01-17
2003-01-28
Anonymous
No

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.

Discussion

  • Logged In: NO

    Submitted by Tom Goddard
    goddard@cgl.ucsf.edu

     
  • Al Larson
    Al Larson
    2003-07-30

    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

     
  • Don Porter
    Don Porter
    2003-10-03

    • summary: Button 2 and 3 reversed, Aqua Tk 8.4.1 --> Button 2 and 3 reversed, Aqua
     
    • priority: 5 --> 4
     
  • Logged In: NO

    Same bug is present in Aqua Tk 8.5.2. Tom Goddard

     
  • Kevin Walzer
    Kevin Walzer
    2011-01-17

    Not present in Tk-Cocoa.

     
  • Kevin Walzer
    Kevin Walzer
    2011-01-17

    • status: open --> closed-works-for-me