diff --git a/qutebrowser/keyinput/basekeyparser.py b/qutebrowser/keyinput/basekeyparser.py index 214d98805..03063f9b2 100644 --- a/qutebrowser/keyinput/basekeyparser.py +++ b/qutebrowser/keyinput/basekeyparser.py @@ -164,8 +164,13 @@ class BaseKeyParser(QObject): self._keystring = '' return - if ((not txt) or # pylint: disable=no-member - unicodedata.category(txt) == 'Cc'): # control chars + if len(txt) == 1: + category = unicodedata.category(txt) # pylint: disable=no-member + is_control_char = (category == 'Cc') + else: + is_control_char = False + + if ((not txt) or is_control_char): self._debug_log("Ignoring, no text char") return False