Merge remote-tracking branch 'origin/pr/4363'
This commit is contained in:
commit
20c9397b86
@ -71,6 +71,7 @@ class NormalKeyParser(CommandKeyParser):
|
|||||||
self._read_config('normal')
|
self._read_config('normal')
|
||||||
self._partial_timer = usertypes.Timer(self, 'partial-match')
|
self._partial_timer = usertypes.Timer(self, 'partial-match')
|
||||||
self._partial_timer.setSingleShot(True)
|
self._partial_timer.setSingleShot(True)
|
||||||
|
self._partial_timer.timeout.connect(self._clear_partial_match)
|
||||||
self._inhibited = False
|
self._inhibited = False
|
||||||
self._inhibited_timer = usertypes.Timer(self, 'normal-inhibited')
|
self._inhibited_timer = usertypes.Timer(self, 'normal-inhibited')
|
||||||
self._inhibited_timer.setSingleShot(True)
|
self._inhibited_timer.setSingleShot(True)
|
||||||
@ -101,7 +102,6 @@ class NormalKeyParser(CommandKeyParser):
|
|||||||
timeout = config.val.input.partial_timeout
|
timeout = config.val.input.partial_timeout
|
||||||
if timeout != 0:
|
if timeout != 0:
|
||||||
self._partial_timer.setInterval(timeout)
|
self._partial_timer.setInterval(timeout)
|
||||||
self._partial_timer.timeout.connect(self._clear_partial_match)
|
|
||||||
self._partial_timer.start()
|
self._partial_timer.start()
|
||||||
return match
|
return match
|
||||||
|
|
||||||
@ -133,11 +133,7 @@ class NormalKeyParser(CommandKeyParser):
|
|||||||
def _stop_timers(self):
|
def _stop_timers(self):
|
||||||
super()._stop_timers()
|
super()._stop_timers()
|
||||||
self._partial_timer.stop()
|
self._partial_timer.stop()
|
||||||
try:
|
self._partial_timer.timeout.disconnect(self._clear_partial_match)
|
||||||
self._partial_timer.timeout.disconnect(self._clear_partial_match)
|
|
||||||
except TypeError:
|
|
||||||
# no connections
|
|
||||||
pass
|
|
||||||
self._inhibited_timer.stop()
|
self._inhibited_timer.stop()
|
||||||
try:
|
try:
|
||||||
self._inhibited_timer.timeout.disconnect(self._clear_inhibited)
|
self._inhibited_timer.timeout.disconnect(self._clear_inhibited)
|
||||||
|
Loading…
Reference in New Issue
Block a user