Skip to content

ensure NVDA speaks text being unselected in browse mode#10862

Merged
michaelDCurran merged 2 commits into
masterfrom
i10731
Mar 11, 2020
Merged

ensure NVDA speaks text being unselected in browse mode#10862
michaelDCurran merged 2 commits into
masterfrom
i10731

Conversation

@michaelDCurran

Copy link
Copy Markdown
Member

Link to issue number:

Fixes #10731

Summary of the issue:

Since the merging of pr #10389, If text is selected in browse mode, then the an arrow key is pressed such that the selection is canceled and the caret is moved, NVDA no longer announces the text being unselected.
This is because although the original pr moved the speakSelectionChange call above the setting of self.selection, the speakSelectionChange call itself was passed self.selection as a parameter and after the move self.selection was no longer the new textInfo position, and therefore it could not get a correct delta of the new and old selections.

Description of how this pull request fixes the issue:

In the speakSelectionchange call, change self.selection to selection.

Testing performed:

Opened a page in Firefox. In browse mode, select a line with shift+downArrow. NVDA announced the line was selected. Then press downArrow (deselecting that line and moving to the next line). NVDA announced the new line and also announced the original line was unselected.

Known issues with pull request:

None.

Change log entry:

Bug fixes:
NVDA will again announce text being unselected in browse mode if pressing an arrow key while text is selected. (#10731).

…elected in browseMode again.

Fixes regression caused by #10389.
@AppVeyorBot

Copy link
Copy Markdown

See test results for failed build of commit 68a9b5c112

@michaelDCurran michaelDCurran merged commit 96ed918 into master Mar 11, 2020
@michaelDCurran michaelDCurran deleted the i10731 branch March 11, 2020 00:32
@nvaccessAuto nvaccessAuto added this to the 2020.1 milestone Mar 11, 2020
michaelDCurran added a commit that referenced this pull request Mar 11, 2020
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 does not reports, when text is unselected in browse mode

4 participants