From 3c7a7c3992da3cf6d7bf121aecd8dc218b2f8584 Mon Sep 17 00:00:00 2001 From: chrys87 Date: Wed, 1 Mar 2017 13:57:40 +0100 Subject: [PATCH] Update 70000-incoming.py --- .../commands/onScreenUpdate/70000-incoming.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/fenrir/commands/onScreenUpdate/70000-incoming.py b/src/fenrir/commands/onScreenUpdate/70000-incoming.py index 06b282df..36d868c9 100644 --- a/src/fenrir/commands/onScreenUpdate/70000-incoming.py +++ b/src/fenrir/commands/onScreenUpdate/70000-incoming.py @@ -25,15 +25,15 @@ class command(): return # its a cursor movement (experimental) - maybe also check current shortcut string? - - if not '$' in self.env['screenData']['newDelta'] and - not '#' in self.env['screenData']['newDelta']: - if abs(self.env['screenData']['newCursor']['x'] - self.env['screenData']['oldCursor']['x']) >= 1: - if len(self.env['screenData']['newDelta'].strip(' \n\t0123456789')) <= 2: - return - if abs(self.env['screenData']['newCursor']['y'] - self.env['screenData']['oldCursor']['y']) == 1: - if len(self.env['screenData']['newDelta'].strip(' \n\t0123456789')) <= 2: - return + + #if not '$' in self.env['screenData']['newDelta'] and + # not '#' in self.env['screenData']['newDelta']: + if abs(self.env['screenData']['newCursor']['x'] - self.env['screenData']['oldCursor']['x']) >= 1: + if len(self.env['screenData']['newDelta'].strip(' \n\t0123456789')) <= 2: + return + if abs(self.env['screenData']['newCursor']['y'] - self.env['screenData']['oldCursor']['y']) == 1: + if len(self.env['screenData']['newDelta'].strip(' \n\t0123456789')) <= 2: + return self.env['runtime']['outputManager'].presentText(self.env['screenData']['newDelta'], interrupt=False, flush=False) def setCallback(self, callback):