-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Modifier key press events not recognized on MacOSX backend #20486
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@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 Using 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. |
This does seem like there is as issue newer versions of OSX. This comment + commented code is worrying: Lines 2158 to 2180 in 6f92db0
but I think the code that is actually run is: Lines 2024 to 2086 in 6f92db0
but I have not traced through everything. |
Bug report
Bug summary
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.
Code for reproduction
Actual outcome
All characters recognized, except modifier keys.
Expected outcome
We should be seeing identifiers, such as
shift
andcontrol
as output from the above script.Matplotlib version
import matplotlib; print(matplotlib.__version__)
): 3.4.2print(matplotlib.get_backend())
): MacOSXThe text was updated successfully, but these errors were encountered: