mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
...
This commit is contained in:
parent
53447245c4
commit
01c47148e9
@ -353,9 +353,12 @@ class LineEdit(QLineEdit, LineEditECM):
|
||||
|
||||
def event(self, ev):
|
||||
# See https://bugreports.qt.io/browse/QTBUG-46911
|
||||
if ev.type() == ev.ShortcutOverride and (
|
||||
ev.key() in (Qt.Key_Left, Qt.Key_Right) and (ev.modifiers() & ~Qt.KeypadModifier) == Qt.ControlModifier):
|
||||
ev.accept()
|
||||
try:
|
||||
if ev.type() == ev.ShortcutOverride and (
|
||||
ev.key() in (Qt.Key_Left, Qt.Key_Right) and (ev.modifiers() & ~Qt.KeypadModifier) == Qt.ControlModifier):
|
||||
ev.accept()
|
||||
except AttributeError:
|
||||
pass
|
||||
return QLineEdit.event(self, ev)
|
||||
|
||||
def complete(self, show_all=False, select_first=True):
|
||||
|
Loading…
x
Reference in New Issue
Block a user