From dd3ab0e336c4bd1a7716b097c24b4d975c422ef2 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 6 May 2014 17:03:01 +0200 Subject: [PATCH] Don't handle backspace as text keypress --- qutebrowser/keyinput/_basekeyparser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qutebrowser/keyinput/_basekeyparser.py b/qutebrowser/keyinput/_basekeyparser.py index b7b388005..6c482ffee 100644 --- a/qutebrowser/keyinput/_basekeyparser.py +++ b/qutebrowser/keyinput/_basekeyparser.py @@ -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