mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
don't reshow the popup when ret hit
This commit is contained in:
parent
8b0f73a960
commit
587b83b424
1 changed files with 2 additions and 1 deletions
|
@ -38,7 +38,8 @@ class TagEdit(QLineEdit):
|
|||
if not evt.text():
|
||||
# if it's a modifier, don't show
|
||||
return
|
||||
self.showCompleter()
|
||||
if evt.key() not in (Qt.Key_Enter, Qt.Key_Return):
|
||||
self.showCompleter()
|
||||
|
||||
def showCompleter(self):
|
||||
self.completer.setCompletionPrefix(self.text())
|
||||
|
|
Loading…
Reference in a new issue