Simplify logic in HintKeyParser.handle

This commit is contained in:
user202729 2018-10-18 16:34:20 +07:00
parent 9727975914
commit 1bcf57f630

View File

@ -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")