initial rebuild of onInput commands
This commit is contained in:
parent
aa3cea9b2e
commit
03722148f8
3
TODO
3
TODO
@ -1,5 +1,4 @@
|
|||||||
ToDos in Priority order:
|
ToDos in Priority order:
|
||||||
- soundIcons
|
|
||||||
- implement commands
|
- implement commands
|
||||||
set_copy_begin_mark
|
set_copy_begin_mark
|
||||||
set_copy_end_mark
|
set_copy_end_mark
|
||||||
@ -119,6 +118,8 @@ except KeyboardInterrupt:
|
|||||||
https://github.com/seb-m/pyinotify/wiki/Tutorial
|
https://github.com/seb-m/pyinotify/wiki/Tutorial
|
||||||
http://www.saltycrane.com/blog/2010/04/monitoring-filesystem-python-and-pyinotify/
|
http://www.saltycrane.com/blog/2010/04/monitoring-filesystem-python-and-pyinotify/
|
||||||
|
|
||||||
|
- soundIcons
|
||||||
|
|
||||||
- default soundIcon theme (soundfiles)
|
- default soundIcon theme (soundfiles)
|
||||||
- implement commands
|
- implement commands
|
||||||
curr_word
|
curr_word
|
||||||
|
@ -4,17 +4,15 @@ class command():
|
|||||||
def __init__(self):
|
def __init__(self):
|
||||||
pass
|
pass
|
||||||
def run(self, environment):
|
def run(self, environment):
|
||||||
if not environment['runtime']['settingsManager'].getSettingAsBool(environment, 'keyboard', 'charEcho') and\
|
if environment['screenData']['newCursor']['x'] > environment['screenData']['oldCursor']['x']:
|
||||||
environment['screenData']['newCursor']['x'] - environment['screenData']['oldCursor']['x'] == 1:
|
|
||||||
return environment
|
return environment
|
||||||
|
|
||||||
ttyChanged = environment['screenData']['newTTY'] != environment['screenData']['oldTTY']
|
if environment['screenData']['newTTY'] != environment['screenData']['oldTTY']:
|
||||||
if environment['screenData']['newDelta'] == environment['screenData']['oldDelta'] and \
|
|
||||||
not ttyChanged:
|
|
||||||
return environment
|
return environment
|
||||||
if ttyChanged:
|
if environment['screenData']['newDelta'] == environment['screenData']['oldDelta']:
|
||||||
environment['runtime']['outputManager'].playSoundIcon(environment,'ChangeTTY')
|
return environment
|
||||||
environment['runtime']['outputManager'].presentText(environment, environment['screenData']['newDelta'], interrupt=ttyChanged)
|
|
||||||
|
environment['runtime']['outputManager'].presentText(environment, environment['screenData']['newDelta'], interrupt=True)
|
||||||
|
|
||||||
return environment
|
return environment
|
||||||
def setCallback(self, callback):
|
def setCallback(self, callback):
|
||||||
|
Loading…
Reference in New Issue
Block a user