Don't handle backspace as text keypress

This commit is contained in:
Florian Bruhin 2014-05-06 17:03:01 +02:00
parent e2ded2e0ad
commit dd3ab0e336

View File

@ -150,7 +150,8 @@ class BaseKeyParser(QObject):
"""
logging.debug("Got key: {} / text: '{}'".format(e.key(), e.text()))
txt = e.text().strip()
if not txt:
if not txt or e.key() == Qt.Key_Backspace:
# backspace is counted as text...
logging.debug("Ignoring, no text")
return False