diff --git a/config/settings/settings.conf b/config/settings/settings.conf index 04e47ac0..49de4c77 100644 --- a/config/settings/settings.conf +++ b/config/settings/settings.conf @@ -69,7 +69,7 @@ charEcho=False # echo deleted chars charDeleteEcho=True # echo word after pressing space -wordEcho=False +wordEcho=True # interrupt speech on any keypress interruptOnKeyPress=False diff --git a/src/fenrir-package/commands/onScreenChanged/60000-word_echo.py b/src/fenrir-package/commands/onScreenChanged/60000-word_echo.py index 01410620..ad3375fa 100644 --- a/src/fenrir-package/commands/onScreenChanged/60000-word_echo.py +++ b/src/fenrir-package/commands/onScreenChanged/60000-word_echo.py @@ -31,11 +31,11 @@ class command(): x, y, currWord = word_utils.getCurrentWord(environment['screenData']['newCursor']['x'], 0, newContent) # was this a typed word? if environment['screenData']['newDelta'] != '': - if not(newContent[environment['screenData']['oldCursor']['x']].strip(" \t\n") == '' and x != environment['screenData']['oldCursor']['x']): + if not(newContent[environment['screenData']['oldCursor']['x']].strip() == '' and x != environment['screenData']['oldCursor']['x']): return environment else: # or just arrow arround? - if not(newContent[environment['screenData']['newCursor']['x']].strip(" \t\n") == '' and x != environment['screenData']['newCursor']['x']): + if not(newContent[environment['screenData']['newCursor']['x']].strip() == '' and x != environment['screenData']['newCursor']['x']): return environment if currWord != '': diff --git a/src/fenrir-package/commands/onScreenChanged/70000-incomming.py b/src/fenrir-package/commands/onScreenChanged/70000-incomming.py index 85a6ff46..a6af947e 100644 --- a/src/fenrir-package/commands/onScreenChanged/70000-incomming.py +++ b/src/fenrir-package/commands/onScreenChanged/70000-incomming.py @@ -13,8 +13,8 @@ class command(): if environment['screenData']['newTTY'] != environment['screenData']['oldTTY']: return environment # its a cursor movement (experimental) - maybe also check current shortcut string? - if abs(environment['screenData']['newCursor']['x'] - environment['screenData']['oldCursor']['x']) == 1: - if len(environment['screenData']['newDelta']) == 1: + if abs(environment['screenData']['newCursor']['x'] - environment['screenData']['oldCursor']['x']) >= 1: + if len(environment['screenData']['newDelta']) <= 5: return environment environment['runtime']['outputManager'].presentText(environment, environment['screenData']['newDelta'], interrupt=False)