nvda
bbbb969c - Python 3: Clean the current words buffer in more cases (PR #9877)

Commit
6 years ago
Python 3: Clean the current words buffer in more cases (PR #9877) Speech refactor introduced a new way to clear the current words buffer for speech. However, in some cases, this buffer wasn't cleared, particularly in the following cases: - In legacy windows consoles, when typing a word and pressing enter, pressing space still reported the previous word that was already sent to the console. - When moving by sentence in Word, the buffer wasn't cleared. To fix this: - in EditableText, the logic to clear the buffer was moved from _caretMovementScriptHelper to _caretScriptPostMovedHelper. This ensures that the buffer is also cleared when navigating by sentence, while not clearing it when the cart hasn't moved, such as when trying sentence nav in an application that doesn't implement it. - I copied the flush_queuedChars from winConsoleUIA to winConsole. Fixes #9769
Author
Committer
Parents
Loading