8000 expose modifier key indexes · matplotlib/matplotlib@41fdfae · GitHub
[go: up one dir, main page]

Skip to content

Commit 41fdfae

Browse files
committed
expose modifier key indexes
1 parent b80a8e7 commit 41fdfae

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/matplotlib/backends/backend_qt4.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,14 @@
8080

8181
# define which modifier keys are collected on keyboard events.
8282
# elements are (mpl names, Modifier Flag, Qt Key) tuples
83+
SUPER = 0
84+
ALT = 1
85+
CTRL = 2
86+
SHIFT = 3
8387
MODIFIER_KEYS = [('super', QtCore.Qt.MetaModifier, QtCore.Qt.Key_Meta),
8488
('alt', QtCore.Qt.AltModifier, QtCore.Qt.Key_Alt),
8589
('ctrl', QtCore.Qt.ControlModifier, QtCore.Qt.Key_Control),
90+
('shift', QtCore.Qt.ShiftModifier, QtCore.Qt.Key_Shift),
8691
]
8792

8893
if sys.platform == 'darwin':

0 commit comments

Comments
 (0)
0