Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c134aa6

Browse files
committed
Use command keys for window shortcuts in Qt on OSX
1 parent f524106 commit c134aa6

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

lib/matplotlib/backends/backend_qt5.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,6 @@
7373
('shift', QtCore.Qt.ShiftModifier, QtCore.Qt.Key_Shift),
7474
]
7575

76-
if sys.platform == 'darwin':
77-
# in OSX, the control and super (aka cmd/apple) keys are switched, so
78-
# switch them back.
79-
SPECIAL_KEYS.update({QtCore.Qt.Key_Control: 'super', # cmd/apple key
80-
QtCore.Qt.Key_Meta: 'control',
81-
})
82-
MODIFIER_KEYS[0] = ('super', QtCore.Qt.ControlModifier,
83-
QtCore.Qt.Key_Control)
84-
MODIFIER_KEYS[2] = ('ctrl', QtCore.Qt.MetaModifier,
85-
QtCore.Qt.Key_Meta)
86-
8776

8877
cursord = {
8978
cursors.MOVE: QtCore.Qt.SizeAllCursor,

0 commit comments

Comments
 (0)