From 288661afa27bdebb3da4e5eaeb56394e1619ffd3 Mon Sep 17 00:00:00 2001 From: chrys Date: Fri, 23 Aug 2019 10:09:30 +0200 Subject: [PATCH] Update 55000-tab_completion.py --- .../commands/onCursorChange/55000-tab_completion.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fenrirscreenreader/commands/onCursorChange/55000-tab_completion.py b/src/fenrirscreenreader/commands/onCursorChange/55000-tab_completion.py index 43b91159..1fa63142 100644 --- a/src/fenrirscreenreader/commands/onCursorChange/55000-tab_completion.py +++ b/src/fenrirscreenreader/commands/onCursorChange/55000-tab_completion.py @@ -19,12 +19,12 @@ class command(): def run(self): # try to detect the tab completion by cursor change xMove = abs(self.env['screen']['newCursor']['x'] - self.env['screen']['oldCursor']['x']) - if xMove == 1: + if xMove <= 2: return # is there any change? if not self.env['runtime']['screenManager'].isDelta(): return - if not( (xMove > 1) and xMove == len(self.env['screen']['newDelta'])): + if not xMove == len(self.env['screen']['newDelta']): return # detect deletion or chilling if self.env['screen']['newCursor']['x'] <= self.env['screen']['oldCursor']['x']: