diff options
author | user202729 <25191436+user202729@users.noreply.github.com> | 2018-10-18 16:34:20 +0700 |
---|---|---|
committer | user202729 <25191436+user202729@users.noreply.github.com> | 2018-10-18 17:13:20 +0700 |
commit | 1bcf57f6301c7c8402724fd738dbb025fadd2685 (patch) | |
tree | 811d33d07cab1b21588052f618834f3459453909 /qutebrowser/keyinput/modeparsers.py | |
parent | 9727975914a338f3f57825e304955c33237bc7e8 (diff) | |
download | qutebrowser-1bcf57f6301c7c8402724fd738dbb025fadd2685.tar.gz qutebrowser-1bcf57f6301c7c8402724fd738dbb025fadd2685.zip |
Simplify logic in HintKeyParser.handle
Diffstat (limited to 'qutebrowser/keyinput/modeparsers.py')
-rw-r--r-- | qutebrowser/keyinput/modeparsers.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/qutebrowser/keyinput/modeparsers.py b/qutebrowser/keyinput/modeparsers.py index 270590fff..ca7f7235e 100644 --- a/qutebrowser/keyinput/modeparsers.py +++ b/qutebrowser/keyinput/modeparsers.py @@ -259,9 +259,8 @@ class HintKeyParser(CommandKeyParser): Returns: True if the match has been handled, False otherwise. """ - dry_run_match = super().handle(e, dry_run=True) if dry_run: - return dry_run_match + return super().handle(e, dry_run=True) if keyutils.is_special(e.key(), e.modifiers()): log.keyboard.debug("Got special key, clearing keychain") |