Fix Ctrl-key on OS X
This commit is contained in:
parent
538d467c8d
commit
cdb33a04cc
@ -428,6 +428,10 @@ def keyevent_to_string(e):
|
|||||||
(Qt.MetaModifier, 'Meta'),
|
(Qt.MetaModifier, 'Meta'),
|
||||||
(Qt.ShiftModifier, 'Shift'),
|
(Qt.ShiftModifier, 'Shift'),
|
||||||
])
|
])
|
||||||
|
if sys.platform == 'darwin':
|
||||||
|
# FIXME verify this feels right on a real Mac as well.
|
||||||
|
# In my Virtualbox VM, the Ctrl key shows up as meta.
|
||||||
|
modmask2str[Qt.MetaModifier] = 'Ctrl'
|
||||||
modifiers = (Qt.Key_Control, Qt.Key_Alt, Qt.Key_Shift, Qt.Key_Meta,
|
modifiers = (Qt.Key_Control, Qt.Key_Alt, Qt.Key_Shift, Qt.Key_Meta,
|
||||||
Qt.Key_AltGr, Qt.Key_Super_L, Qt.Key_Super_R,
|
Qt.Key_AltGr, Qt.Key_Super_L, Qt.Key_Super_R,
|
||||||
Qt.Key_Hyper_L, Qt.Key_Hyper_R, Qt.Key_Direction_L,
|
Qt.Key_Hyper_L, Qt.Key_Hyper_R, Qt.Key_Direction_L,
|
||||||
|
Loading…
Reference in New Issue
Block a user