8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d1dd52a + cb6e75c commit 19b3598Copy full SHA for 19b3598
lib/matplotlib/backends/backend_tkagg.py
@@ -453,15 +453,20 @@ def _get_key(self, event):
453
# In general, the modifier key is excluded from the modifier flag,
454
# however this is not the case on "darwin", so double check that
455
# we aren't adding repeat modifier flags to a modifier key.
456
- modifiers = [(6, 'super', 'super'),
457
- (3, 'alt', 'alt'),
458
- (2, 'ctrl', 'control'),
459
- ]
460
- if sys.platform == 'darwin':
+ if sys.platform == 'win32':
+ modifiers = [(17, 'alt', 'alt'),
+ (2, 'ctrl', 'control'),
+ ]
+ elif sys.platform == 'darwin':
461
modifiers = [(3, 'super', 'super'),
462
(4, 'alt', 'alt'),
463
(2, 'ctrl', 'control'),
464
465
+ else:
466
+ modifiers = [(6, 'super', 'super'),
467
+ (3, 'alt', 'alt'),
468
469
470
471
if key is not None:
472
# note, shift is not added to the keys as this is already accounted for
0 commit comments