From d112dd316792e54d047d85f78904935735d899c2 Mon Sep 17 00:00:00 2001 From: chrys87 Date: Wed, 1 Mar 2017 13:44:01 +0100 Subject: [PATCH] Update 70000-incoming.py --- src/fenrir/commands/onScreenUpdate/70000-incoming.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/fenrir/commands/onScreenUpdate/70000-incoming.py b/src/fenrir/commands/onScreenUpdate/70000-incoming.py index b524775a..7b1f56a2 100644 --- a/src/fenrir/commands/onScreenUpdate/70000-incoming.py +++ b/src/fenrir/commands/onScreenUpdate/70000-incoming.py @@ -27,10 +27,11 @@ class command(): # its a cursor movement (experimental) - maybe also check current shortcut string? if abs(self.env['screenData']['newCursor']['x'] - self.env['screenData']['oldCursor']['x']) >= 1: - if len(self.env['screenData']['newDelta'].strip(' \n\t')) <= 2: + if len(self.env['screenData']['newDelta'].strip(' \n\t0123456789')) <= 2: return if abs(self.env['screenData']['newCursor']['y'] - self.env['screenData']['oldCursor']['y']) == 1: - return + 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):