Make sure 0 is handled as command

This commit is contained in:
Florian Bruhin 2018-02-27 08:50:50 +01:00
parent 9e27f2b3e7
commit eeeb763f8a

View File

@ -139,7 +139,8 @@ class BaseKeyParser(QObject):
# self._debug_log("Ignoring, no text char")
# return QKeySequence.NoMatch
if txt.isdigit() and self._supports_count:
if (txt.isdigit() and self._supports_count and not
(not self._count and txt == '0')):
assert len(txt) == 1, txt
self._count += txt
return None