From 18b9e92b1910cd72a746ad99ed39687643e5a889 Mon Sep 17 00:00:00 2001 From: chrys Date: Fri, 2 Sep 2016 23:20:27 +0200 Subject: [PATCH] try to fix delete trigger --- .../commands/onScreenChanged/65000-char_delete_echo.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fenrir-package/commands/onScreenChanged/65000-char_delete_echo.py b/src/fenrir-package/commands/onScreenChanged/65000-char_delete_echo.py index 0e909c90..dfa308e0 100644 --- a/src/fenrir-package/commands/onScreenChanged/65000-char_delete_echo.py +++ b/src/fenrir-package/commands/onScreenChanged/65000-char_delete_echo.py @@ -24,7 +24,9 @@ class command(): # No deletion if environment['screenData']['newNegativeDelta'] == '': 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) return environment def setCallback(self, callback):