should restart the timer if BS is pressed but buffer is non-zero

This commit is contained in:
petrucci4prez 2017-06-13 03:07:53 -04:00
parent d5d2ce6abc
commit 96d1cb866b
1 changed files with 2 additions and 0 deletions

View File

@ -85,6 +85,8 @@ class KeypadListener:
self._buf = self._buf[:-1] self._buf = self._buf[:-1]
if self._buf == '': if self._buf == '':
self._stopResetTimer() self._stopResetTimer()
else:
self._startResetTimer()
backspaceSound.play() backspaceSound.play()
# reset buffer # reset buffer