Update 70000-incoming.py
This commit is contained in:
parent
2da4bd3df4
commit
3c7a7c3992
@ -26,14 +26,14 @@ class command():
|
||||
|
||||
# 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):
|
||||
|
Loading…
Reference in New Issue
Block a user