From c7f62cd1ffa497161966fb5115e2f8949a1ca8d9 Mon Sep 17 00:00:00 2001 From: chrys Date: Fri, 23 Aug 2019 10:06:29 +0200 Subject: [PATCH] Update 15000-char_echo.py --- .../commands/onCursorChange/15000-char_echo.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/fenrirscreenreader/commands/onCursorChange/15000-char_echo.py b/src/fenrirscreenreader/commands/onCursorChange/15000-char_echo.py index c4cd2ad6..c41d45fc 100644 --- a/src/fenrirscreenreader/commands/onCursorChange/15000-char_echo.py +++ b/src/fenrirscreenreader/commands/onCursorChange/15000-char_echo.py @@ -17,11 +17,12 @@ class command(): return 'No Description found' def run(self): + # enabled? + if not self.env['runtime']['settingsManager'].getSettingAsBool('keyboard', 'charEcho'): + return # big changes are no char (but the value is bigger than one maybe the differ needs longer than you can type, so a little strange random buffer for now) xMove = abs(self.env['screen']['newCursor']['x'] - self.env['screen']['oldCursor']['x']) - if xMove > 1: - return - if not self.env['runtime']['settingsManager'].getSettingAsBool('keyboard', 'charEcho'): + if xMove > 2: return # detect deletion or chilling if self.env['screen']['newCursor']['x'] <= self.env['screen']['oldCursor']['x']: