From 43b5a9c4bf1da21e3c9e65a76d7a9a999419df01 Mon Sep 17 00:00:00 2001 From: Chrys Date: Wed, 19 May 2021 21:56:37 +0200 Subject: [PATCH] revert incomming --- .../commands/onScreenUpdate/70000-incoming.py | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/src/fenrirscreenreader/commands/onScreenUpdate/70000-incoming.py b/src/fenrirscreenreader/commands/onScreenUpdate/70000-incoming.py index 3d70139f..404c3007 100644 --- a/src/fenrirscreenreader/commands/onScreenUpdate/70000-incoming.py +++ b/src/fenrirscreenreader/commands/onScreenUpdate/70000-incoming.py @@ -27,24 +27,13 @@ class command(): #if len(self.env['screen']['newDelta'].strip(' \n\t')) <= 1: xMove = abs(self.env['screen']['newCursor']['x'] - self.env['screen']['oldCursor']['x']) yMove = abs(self.env['screen']['newCursor']['y'] - self.env['screen']['oldCursor']['y']) - #print('-----') - #print(self.env['screen']['newDelta']) - #print(xMove, yMove, len(self.env['screen']['newNegativeDelta']), self.env['screen']['newNegativeDelta']) - #print(xMove, yMove, len(self.env['screen']['newDelta']), self.env['screen']['newDelta']) - if (xMove >= 1) and abs(xMove) == len(self.env['screen']['newDelta']): + + if (xMove >= 1) and xMove == len(self.env['screen']['newDelta']): # if len(self.env['screen']['newDelta'].strip(' \n\t0123456789')) <= 2: if not '\n' in self.env['screen']['newDelta']: return - # shift line - if (xMove != 0) and len(self.env['screen']['newNegativeDelta']) == 0: - return - # filter out delete - if (xMove == 0) and (yMove == 0): - if len(self.env['screen']['newNegativeDelta']) - len(self.env['screen']['newDelta']) in [1,2,3]: - return - + #print(xMove, yMove, len(self.env['screen']['newDelta']), len(self.env['screen']['newNegativeDelta'])) self.env['runtime']['outputManager'].presentText(self.env['screen']['newDelta'], interrupt=False, flush=False) def setCallback(self, callback): pass -