mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
ignore other non-alpha keys when showing completer
This commit is contained in:
parent
c79f273931
commit
caeeb289e1
1 changed files with 3 additions and 1 deletions
|
@ -38,7 +38,9 @@ class TagEdit(QLineEdit):
|
||||||
if not evt.text():
|
if not evt.text():
|
||||||
# if it's a modifier, don't show
|
# if it's a modifier, don't show
|
||||||
return
|
return
|
||||||
if evt.key() not in (Qt.Key_Enter, Qt.Key_Return):
|
if evt.key() not in (
|
||||||
|
Qt.Key_Enter, Qt.Key_Return, Qt.Key_Escape, Qt.Key_Space,
|
||||||
|
Qt.Key_Tab, Qt.Key_Backspace, Qt.Key_Delete):
|
||||||
self.showCompleter()
|
self.showCompleter()
|
||||||
|
|
||||||
def showCompleter(self):
|
def showCompleter(self):
|
||||||
|
|
Loading…
Reference in a new issue