Update 70000-incoming.py

This commit is contained in:
chrys87 2017-03-01 13:55:58 +01:00 committed by GitHub
parent d112dd3167
commit 2da4bd3df4

View File

@ -26,12 +26,14 @@ class command():
# its a cursor movement (experimental) - maybe also check current shortcut string? # 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 not '$' in self.env['screenData']['newDelta'] and
if len(self.env['screenData']['newDelta'].strip(' \n\t0123456789')) <= 2: not '#' in self.env['screenData']['newDelta']:
return if abs(self.env['screenData']['newCursor']['x'] - self.env['screenData']['oldCursor']['x']) >= 1:
if abs(self.env['screenData']['newCursor']['y'] - self.env['screenData']['oldCursor']['y']) == 1: if len(self.env['screenData']['newDelta'].strip(' \n\t0123456789')) <= 2:
if len(self.env['screenData']['newDelta'].strip(' \n\t0123456789')) <= 2: return
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) self.env['runtime']['outputManager'].presentText(self.env['screenData']['newDelta'], interrupt=False, flush=False)
def setCallback(self, callback): def setCallback(self, callback):