diff options
Diffstat (limited to 'qutebrowser/keyinput/modeparsers.py')
-rw-r--r-- | qutebrowser/keyinput/modeparsers.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/qutebrowser/keyinput/modeparsers.py b/qutebrowser/keyinput/modeparsers.py index dd9704c87..238fe2722 100644 --- a/qutebrowser/keyinput/modeparsers.py +++ b/qutebrowser/keyinput/modeparsers.py @@ -264,8 +264,7 @@ class HintKeyParser(CommandKeyParser): if dry_run: return dry_run_match - if (not keyutils.is_printable(e.key()) and - dry_run_match == QKeySequence.NoMatch): + if keyutils.is_special(e.key(), e.modifiers()): log.keyboard.debug("Got special key, clearing keychain") self.clear_keystring() @@ -346,7 +345,7 @@ class RegisterKeyParser(CommandKeyParser): if match or dry_run: return match - if not keyutils.is_printable(e.key()): + if keyutils.is_special(e.key(), e.modifiers()): # this is not a proper register key, let it pass and keep going return QKeySequence.NoMatch |