diff options
author | Florian Bruhin <me@the-compiler.org> | 2019-10-10 09:52:14 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2019-10-10 09:54:22 +0200 |
commit | 7c54355da7c438352554bef0a56a69d7c9fead77 (patch) | |
tree | aaa91acadaa5f6fc000f51a90b87fbd4388db946 /qutebrowser/keyinput/basekeyparser.py | |
parent | 00c341fe6dfaffa69d846a469fc8e48d1c20fe6c (diff) | |
download | qutebrowser-7c54355da7c438352554bef0a56a69d7c9fead77.tar.gz qutebrowser-7c54355da7c438352554bef0a56a69d7c9fead77.zip |
Fix hint filtering with number keypad
In 9557885 a regression was introduced which broke following hints with the
number keypad.
Fixes #5065
Diffstat (limited to 'qutebrowser/keyinput/basekeyparser.py')
-rw-r--r-- | qutebrowser/keyinput/basekeyparser.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qutebrowser/keyinput/basekeyparser.py b/qutebrowser/keyinput/basekeyparser.py index 3721513bb..14dc0608b 100644 --- a/qutebrowser/keyinput/basekeyparser.py +++ b/qutebrowser/keyinput/basekeyparser.py @@ -280,6 +280,8 @@ class BaseKeyParser(QObject): return QKeySequence.NoMatch result = self._match_key(sequence) + del sequence # Enforce code below to use the modified result.sequence + if result.match_type == QKeySequence.NoMatch: result = self._match_without_modifiers(result.sequence) if result.match_type == QKeySequence.NoMatch: @@ -304,7 +306,7 @@ class BaseKeyParser(QObject): elif result.match_type == QKeySequence.PartialMatch: self._debug_log("No match for '{}' (added {})".format( result.sequence, txt)) - self.keystring_updated.emit(self._count + str(sequence)) + self.keystring_updated.emit(self._count + str(result.sequence)) elif result.match_type == QKeySequence.NoMatch: self._debug_log("Giving up with '{}', no matches".format( result.sequence)) |