try to fix delete trigger

This commit is contained in:
chrys 2016-09-02 23:20:27 +02:00
parent 875640c5c1
commit 18b9e92b19

View File

@ -24,7 +24,9 @@ class command():
# No deletion # No deletion
if environment['screenData']['newNegativeDelta'] == '': if environment['screenData']['newNegativeDelta'] == '':
return environment return environment
# too much for a single backspace...
if len(environment['screenData']['newNegativeDelta']) >= 5:
return environment
environment['runtime']['outputManager'].presentText(environment, environment['screenData']['newNegativeDelta'], interrupt=True) environment['runtime']['outputManager'].presentText(environment, environment['screenData']['newNegativeDelta'], interrupt=True)
return environment return environment
def setCallback(self, callback): def setCallback(self, callback):