Fix backspace handling in numeric hint mode

addresses #1186
This commit is contained in:
Jakub Klinkovský 2015-12-23 15:49:28 +01:00 committed by Florian Bruhin
parent 802258d70a
commit 3690ead5e0

View File

@ -181,6 +181,11 @@ class HintKeyParser(keyparser.CommandKeyParser):
elif self._last_press == LastPress.keystring and self._keystring:
self._keystring = self._keystring[:-1]
self.keystring_updated.emit(self._keystring)
if not self._keystring and self._filtertext:
# Switch back to hint filtering mode (this can happen only
# in numeric mode after the number has been deleted).
hintmanager.filter_hints(self._filtertext)
self._last_press = LastPress.filtertext
return True
else:
return super()._handle_special_key(e)