Make sure 0 is handled as command
This commit is contained in:
parent
9e27f2b3e7
commit
eeeb763f8a
@ -139,7 +139,8 @@ class BaseKeyParser(QObject):
|
|||||||
# self._debug_log("Ignoring, no text char")
|
# self._debug_log("Ignoring, no text char")
|
||||||
# return QKeySequence.NoMatch
|
# 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
|
assert len(txt) == 1, txt
|
||||||
self._count += txt
|
self._count += txt
|
||||||
return None
|
return None
|
||||||
|
Loading…
Reference in New Issue
Block a user