mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Do not trigger completion on up/down arrow keys
This commit is contained in:
parent
5bcd936470
commit
b30441093a
@ -793,7 +793,9 @@ class TextEdit(PlainTextEdit):
|
||||
if code in (
|
||||
0, Qt.Key_unknown, Qt.Key_Shift, Qt.Key_Control, Qt.Key_Alt,
|
||||
Qt.Key_Meta, Qt.Key_AltGr, Qt.Key_CapsLock, Qt.Key_NumLock,
|
||||
Qt.Key_ScrollLock):
|
||||
Qt.Key_ScrollLock, Qt.Key_Up, Qt.Key_Down):
|
||||
# We ignore up/down arrow so as to not break scrolling through the
|
||||
# text with the arrow keys
|
||||
return
|
||||
result = self.smarts.get_completion_data(self, ev)
|
||||
if result is None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user