From caeeb289e114f0084359b3ad6843744311fe8b77 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 14 May 2012 05:38:45 +0900 Subject: [PATCH] ignore other non-alpha keys when showing completer --- aqt/tagedit.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aqt/tagedit.py b/aqt/tagedit.py index bc82108d0..66b46d121 100644 --- a/aqt/tagedit.py +++ b/aqt/tagedit.py @@ -38,7 +38,9 @@ class TagEdit(QLineEdit): if not evt.text(): # if it's a modifier, don't show 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() def showCompleter(self):