Skip to content

Commit 1f93445

Browse files
committed
Use command keys for window shortcuts in Qt on OSX
Only make change on darwin
1 parent 39d563e commit 1f93445

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy