This commit is contained in:
chrys
2016-10-22 20:31:37 +02:00
11 changed files with 90 additions and 53 deletions

View File

@@ -22,8 +22,6 @@ class command():
# detect deletion or chilling
if self.env['screenData']['newCursor']['x'] <= self.env['screenData']['oldCursor']['x']:
return
if self.env['runtime']['inputManager'].noKeyPressed():
return
# is there any change?
if not self.environment['runtime']['screenManager'].isDelta():
return

View File

@@ -19,12 +19,13 @@ class command():
def run(self):
if not self.env['runtime']['settingsManager'].getSettingAsBool('keyboard', 'charDeleteEcho'):
return
# detect typing or chilling
if self.env['screenData']['newCursor']['x'] >= self.env['screenData']['oldCursor']['x']:
return
# More than just a deletion happend
if self.environment['runtime']['screenManager'].isDelta():
return
# no deletion
@@ -32,8 +33,10 @@ class command():
return
if self.env['runtime']['inputManager'].noKeyPressed():
return
# too much for a single backspace...
if len(self.env['screenData']['newNegativeDelta']) >= 2:
# word begin produce a diff wiht len == 2 |a | others with 1 |a|
if len(self.env['screenData']['newNegativeDelta']) > 2:
return
self.env['runtime']['outputManager'].presentText(self.env['screenData']['newNegativeDelta'], interrupt=True, ignorePunctuation=True, announceCapital=True)

View File

@@ -50,6 +50,8 @@ class command():
self.env['runtime']['outputManager'].presentText("blank", soundIcon='EmptyLine', interrupt=True)
else:
self.env['runtime']['outputManager'].presentText(announce, interrupt=True)
self.env['commandsIgnore']['onScreenUpdate']['CHAR_DELETE_ECHO'] = True
self.env['commandsIgnore']['onScreenUpdate']['CHAR_ECHO'] = True
self.env['commandsIgnore']['onScreenUpdate']['INCOMING_IGNORE'] = True
def setCallback(self, callback):
pass