don't reshow the popup when ret hit

This commit is contained in:
Damien Elmes 2012-04-22 09:45:40 +09:00
parent 8b0f73a960
commit 587b83b424

View file

@ -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())