Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Link to issue number:
Fixes #19395
Fix-up of #19173.
Summary of the issue:
Sometimes, e.g. in Notepad, skim reading process was not correctly interrupted when pressing
controlkey: say all was restarting when another key was pressed.Description of user facing changes:
Skim reading process is now correctly interrupted when
controlis pressed.Description of developer facing changes:
N/A
Description of development approach:
When the speech sequence is stored, it is first filtered.
CallbackCommands are filtered out of the sequence since callback functions such as say all ones should not be called again when repeating the last speech (this was the cause of say all restarting).Not all
BaseCallbackCommands are filtered since otherBaseCallbackCommandsuch asBeepCommand(for indentation reporting) orWaveFileCommands (for spelling error reporting) still need to be reported.I have not included
IndexCommands in the filtering since in any case, they only seem to appear downstream, in the speech manager part.Regarding
CancellableSpeechCommands, I have included them, since I've seen that they are also filtered out from remote speech. Though, I do not exactly know how cancellable speech works, so please double check. Thanks.Testing strategy:
Manual test of speech repetition in browse mode as well as in Notepad and tests with skim reading as described in #19395.
Also tested that indentation beeps or spelling errors sounds while reading are still played when repeating the last speech.
Known issues with pull request:
None
Code Review Checklist: