Skip to content

speech.speakObjectProperties: if removing the 'selected' state, make sure to copy the states set first as to not mutate the cache for future state change announcements#8900

Merged
michaelDCurran merged 1 commit intomasterfrom
pr8898_speakObjectProperties_copyStates
Nov 1, 2018

Conversation

@michaelDCurran
Copy link
Copy Markdown
Member

@michaelDCurran michaelDCurran commented Oct 31, 2018

Link to issue number:

Fixes #8903

Summary of the issue:

With the merging of pr #8898, NVDA has started announcing 'selected' if the focused control has the selected state when another state changes.
For example, In Thunderbird when collapsing or expanding an email account in the mail folders treeview.

Description of how this pull request fixes the issue:

This PR makes sure to copy the states set in speakObjectProperties before removing the 'selected' and 'selectable' states. This is so that the cached states are not affected. Otherwise, when a state change occurs, NVDA would think that selected and selectable were added back in.

Testing performed:

Collapsed and expanded an email account in Thunderbird mail folders treeview.

Known issues with pull request:

None.

Change log entry:

None needed.

Section: New features, Changes, Bug fixes

…sure to copy the states set first as to not mutate the cache for future state change announcements.
Copy link
Copy Markdown
Collaborator

@LeonarddeR LeonarddeR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good and works as expected 😁

@michaelDCurran michaelDCurran merged commit 8c4557b into master Nov 1, 2018
@nvaccessAuto nvaccessAuto added this to the 2018.4 milestone Nov 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NVDA announces "selected" for every message row in Thunderbird

3 participants