-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Shift+Arrow key events not detected in osx backend #9835
Copy link
Copy link
Closed
Labels
Milestone
Description
Consider the following example code:
import matplotlib.pyplot as plt
fig = plt.figure()
def on_key(event):
print('you pressed', event.key, event.xdata, event.ydata)
fig.canvas.mpl_connect('key_press_event', on_key)Now when I run this code and press Shift+Left Arrow, the qt5 backend correctly detects this event as shift+left. However, the osx backend (which AFAIK is the default backend on macOS) doesn't register the shift key at all, I only get left. Is it possible to fix this somehow?
Reactions are currently unavailable