diff --git a/src/fenrir/commands/onScreenUpdate/70000-incoming.py b/src/fenrir/commands/onScreenUpdate/70000-incoming.py index d632a1cc..863f6eae 100644 --- a/src/fenrir/commands/onScreenUpdate/70000-incoming.py +++ b/src/fenrir/commands/onScreenUpdate/70000-incoming.py @@ -21,19 +21,15 @@ class command(): return # is there something to read? if not self.env['runtime']['screenManager'].isDelta(): - return + return + # this must be a keyecho or something if len(self.env['screen']['newDelta']) <=2: - return - # its a cursor movement (experimental) - maybe also check current shortcut string? - - #if not '$' in self.env['screen']['newDelta'] and - # not '#' in self.env['screen']['newDelta']: - if abs(self.env['screen']['newCursor']['x'] - self.env['screen']['oldCursor']['x']) == 1: - # if len(self.env['screen']['newDelta'].strip(' \n\t0123456789')) <= 2: - return - if abs(self.env['screen']['newCursor']['y'] - self.env['screen']['oldCursor']['y']) == 1: - # if len(self.env['screen']['newDelta'].strip(' \n\t0123456789')) <= 2: - return + if abs(self.env['screen']['newCursor']['x'] - self.env['screen']['oldCursor']['x']) == 1: + # if len(self.env['screen']['newDelta'].strip(' \n\t0123456789')) <= 2: + return + if abs(self.env['screen']['newCursor']['y'] - self.env['screen']['oldCursor']['y']) == 1: + # if len(self.env['screen']['newDelta'].strip(' \n\t0123456789')) <= 2: + return self.env['runtime']['outputManager'].presentText(self.env['screen']['newDelta'], interrupt=False, flush=False) def setCallback(self, callback): diff --git a/src/fenrir/core/fenrirManager.py b/src/fenrir/core/fenrirManager.py index 8d99ff50..a52355f1 100644 --- a/src/fenrir/core/fenrirManager.py +++ b/src/fenrir/core/fenrirManager.py @@ -101,7 +101,6 @@ class fenrirManager(): def handleScreenUpdate(self, event): #startTime = time.time() - self.environment['runtime']['screenManager'].update('onUpdate') ''' if self.environment['runtime']['applicationManager'].isApplicationChange():