summaryrefslogtreecommitdiff
path: root/qutebrowser/keyinput/basekeyparser.py
diff options
context:
space:
mode:
authorFlorian Bruhin <git@the-compiler.org>2018-03-04 21:32:28 +0100
committerFlorian Bruhin <git@the-compiler.org>2018-03-04 21:32:28 +0100
commitf2fadd7addf3b86b2414f6ed1787588c3f0549ad (patch)
tree547082755f3fc26ddebd65f16f3eeb784defc18c /qutebrowser/keyinput/basekeyparser.py
parent0967b6abd276daf3f0543af3438fbf39335f8f2d (diff)
downloadqutebrowser-f2fadd7addf3b86b2414f6ed1787588c3f0549ad.tar.gz
qutebrowser-f2fadd7addf3b86b2414f6ed1787588c3f0549ad.zip
Fix handling of key_mappings
Diffstat (limited to 'qutebrowser/keyinput/basekeyparser.py')
-rw-r--r--qutebrowser/keyinput/basekeyparser.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/qutebrowser/keyinput/basekeyparser.py b/qutebrowser/keyinput/basekeyparser.py
index 2c934617b..f22df8cf7 100644
--- a/qutebrowser/keyinput/basekeyparser.py
+++ b/qutebrowser/keyinput/basekeyparser.py
@@ -138,15 +138,16 @@ class BaseKeyParser(QObject):
self._count += txt
return QKeySequence.ExactMatch
- sequence = self._sequence.append_event(e)
- match, binding = self._match_key(sequence)
+ self._sequence = self._sequence.append_event(e)
+ match, binding = self._match_key(self._sequence)
if match == QKeySequence.NoMatch:
mappings = config.val.bindings.key_mappings
- mapped = mappings.get(sequence, None)
+ mapped = mappings.get(self._sequence, None)
if mapped is not None:
+ self._debug_log("Mapped {} -> {}".format(
+ self._sequence, mapped))
match, binding = self._match_key(mapped)
-
- self._sequence = self._sequence.append_event(e)
+ self._sequence = mapped
if match == QKeySequence.ExactMatch:
self._debug_log("Definitive match for '{}'.".format(