adjust onScreenUpdate commands
This commit is contained in:
parent
b15efce9d7
commit
96a1055ec3
@ -17,32 +17,29 @@ class command():
|
|||||||
return 'No Description found'
|
return 'No Description found'
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
print('drin')
|
if not self.env['runtime']['settingsManager'].getSettingAsBool('keyboard', 'charDeleteEcho'):
|
||||||
#if not self.env['runtime']['settingsManager'].getSettingAsBool('keyboard', 'charDeleteEcho'):
|
return
|
||||||
# return
|
|
||||||
|
|
||||||
# detect typing or chilling
|
# detect typing or chilling
|
||||||
#if self.env['screen']['newCursor']['x'] >= self.env['screen']['oldCursor']['x']:
|
if self.env['screen']['newCursor']['x'] >= self.env['screen']['oldCursor']['x']:
|
||||||
# return
|
return
|
||||||
|
|
||||||
# More than just a deletion happend
|
# More than just a deletion happend
|
||||||
|
|
||||||
if self.env['runtime']['screenManager'].isDelta():
|
if self.env['runtime']['screenManager'].isDelta():
|
||||||
return
|
return
|
||||||
# no deletion
|
# no deletion
|
||||||
#if not self.env['runtime']['screenManager'].isNegativeDelta():
|
if not self.env['runtime']['screenManager'].isNegativeDelta():
|
||||||
# return
|
return
|
||||||
|
|
||||||
# too much for a single backspace...
|
# too much for a single backspace...
|
||||||
# word begin produce a diff wiht len == 2 |a | others with 1 |a|
|
# word begin produce a diff wiht len == 2 |a | others with 1 |a|
|
||||||
#if len(self.env['screen']['newNegativeDelta']) > 2:
|
if len(self.env['screen']['newNegativeDelta']) > 2:
|
||||||
# return
|
return
|
||||||
currNegativeDelta = self.env['screen']['newNegativeDelta']
|
currNegativeDelta = self.env['screen']['newNegativeDelta']
|
||||||
#if len(currNegativeDelta.strip()) != len(currNegativeDelta) and \
|
#if len(currNegativeDelta.strip()) != len(currNegativeDelta) and \
|
||||||
# currNegativeDelta.strip() != '':
|
# currNegativeDelta.strip() != '':
|
||||||
# currNegativeDelta = currNegativeDelta.strip()
|
# currNegativeDelta = currNegativeDelta.strip()
|
||||||
self.env['runtime']['outputManager'].presentText(currNegativeDelta, interrupt=True, ignorePunctuation=True, announceCapital=True, flush=False)
|
self.env['runtime']['outputManager'].presentText(currNegativeDelta, interrupt=True, ignorePunctuation=True, announceCapital=True, flush=False)
|
||||||
print('danach',currNegativeDelta,'d')
|
|
||||||
def setCallback(self, callback):
|
def setCallback(self, callback):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@ -17,13 +17,12 @@ class command():
|
|||||||
return 'No Description found'
|
return 'No Description found'
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
|
|
||||||
if not self.env['runtime']['settingsManager'].getSettingAsBool('speech', 'autoReadIncoming'):
|
if not self.env['runtime']['settingsManager'].getSettingAsBool('speech', 'autoReadIncoming'):
|
||||||
return
|
return
|
||||||
# is there something to read?
|
# is there something to read?
|
||||||
if not self.env['runtime']['screenManager'].isDelta():
|
if not self.env['runtime']['screenManager'].isDelta():
|
||||||
return
|
return
|
||||||
if len(self.env['screen']['newDelta']) >=2:
|
if len(self.env['screen']['newDelta']) <=2:
|
||||||
return
|
return
|
||||||
# its a cursor movement (experimental) - maybe also check current shortcut string?
|
# its a cursor movement (experimental) - maybe also check current shortcut string?
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user