This commit is contained in:
Kovid Goyal 2020-02-26 15:32:35 +05:30
parent 22cb38d657
commit 45418c3ebe
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -524,7 +524,7 @@ class EnLineEdit(LineEditECM, QLineEdit): # {{{
def event(self, ev): def event(self, ev):
# See https://bugreports.qt.io/browse/QTBUG-46911 # See https://bugreports.qt.io/browse/QTBUG-46911
if ev.type() == ev.ShortcutOverride and ( if ev.type() == ev.ShortcutOverride and (
ev.key() in (Qt.Key_Left, Qt.Key_Right) and (ev.modifiers() & ~Qt.KeypadModifier) == Qt.ControlModifier): hasattr(ev, 'key') and ev.key() in (Qt.Key_Left, Qt.Key_Right) and (ev.modifiers() & ~Qt.KeypadModifier) == Qt.ControlModifier):
ev.accept() ev.accept()
return QLineEdit.event(self, ev) return QLineEdit.event(self, ev)