You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Modifier key press events not recognized on MacOSX backend #20486
Key press events identify every key, except modifiers (control, option, command and shift). This behaviour is different from that of Linux and Windows where modifiers are recognized. This behaviour is identical to what was presented in #9835, and supposedly fixed in #9836.
@Pixadus Could you check if this works for you on the 3.3.x series? We did some work in 3.4 to unify the key handling and I'm worried we put a regression in.
Can you also check if this works with other backends (eg qtagg on tkagg) on OSX?
I took a look at it using matplotlib==3.3.0, however it exhibited the same behavior. Following your idea, I changed versions to matplotlib=2.2.0, the version this original issue was fixed in, and it still did not reveal any modifiers.
Using matplotlib.use('TkAgg') with the code above did show modifier keys, indicating it might just be an issue with the MacOSX backend.
One additional thing of note - this computer is using one of the new M1 ARM-based processors. I'm not sure if that would impact this at all, but thought I should note.
Activity
tacaswell commentedon Jun 22, 2021
@Pixadus Could you check if this works for you on the 3.3.x series? We did some work in 3.4 to unify the key handling and I'm worried we put a regression in.
Can you also check if this works with other backends (eg qtagg on tkagg) on OSX?
Pixadus commentedon Jun 22, 2021
I took a look at it using
matplotlib==3.3.0, however it exhibited the same behavior. Following your idea, I changed versions tomatplotlib=2.2.0, the version this original issue was fixed in, and it still did not reveal any modifiers.Using
matplotlib.use('TkAgg')with the code above did show modifier keys, indicating it might just be an issue with theMacOSXbackend.One additional thing of note - this computer is using one of the new M1 ARM-based processors. I'm not sure if that would impact this at all, but thought I should note.
tacaswell commentedon Jun 23, 2021
This does seem like there is as issue newer versions of OSX.
This comment + commented code is worrying:
matplotlib/src/_macosx.m
Lines 2158 to 2180 in 6f92db0
but I think the code that is actually run is:
matplotlib/src/_macosx.m
Lines 2024 to 2086 in 6f92db0
but I have not traced through everything.