8000 Merge pull request #9750 from dstansby/osx-qt5-command · matplotlib/matplotlib@0943a6c · GitHub
[go: up one dir, main page]

Skip to content

Commit 0943a6c

Browse files
authored
Merge pull request #9750 from dstansby/osx-qt5-command
Use command keys for window shortcuts in Qt on OSX
2 parents f866168 + 1f93445 commit 0943a6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/backends/backend_qt5.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@
7676
if sys.platform == 'darwin':
7777
# in OSX, the control and super (aka cmd/apple) keys are switched, so
7878
# switch them back.
79-
SPECIAL_KEYS.update({QtCore.Qt.Key_Control: 'super', # cmd/apple key
79+
SPECIAL_KEYS.update({QtCore.Qt.Key_Control: 'cmd', # cmd/apple key
8080
QtCore.Qt.Key_Meta: 'control',
8181
})
82-
MODIFIER_KEYS[0] = ('super', QtCore.Qt.ControlModifier,
82+
MODIFIER_KEYS[0] = ('cmd', QtCore.Qt.ControlModifier,
8383
QtCore.Qt.Key_Control)
8484
MODIFIER_KEYS[2] = ('ctrl', QtCore.Qt.MetaModifier,
8585
QtCore.Qt.Key_Meta)

0 commit comments

Comments
 (0)
0