mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
22cb38d657
commit
45418c3ebe
@ -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)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user