Skip to content

Ensure spelling errors are still reported if IUIAutomationTextRange3 is unavailable#9180

Merged
michaelDCurran merged 1 commit intomasterfrom
i9176
Jan 23, 2019
Merged

Ensure spelling errors are still reported if IUIAutomationTextRange3 is unavailable#9180
michaelDCurran merged 1 commit intomasterfrom
i9176

Conversation

@michaelDCurran
Copy link
Member

Link to issue number:

Fixes #9176

Summary of the issue:

Spelling errors are not being reported in speech or braille in early Windows 10 builds. This was seen when testing UIA in Microsoft Word 2016 by default.
Further testing showed that spelling errors, and other annotation information (such as comments) were not being reported, in any build of Windows before IUIAutomationTextRange3 was introduced, which allowed bulk fetching of text attributes.
The code that checked if annotationTypes should be fetched is incorrectly positioned within the block specific to IUIAutomationTextRange3.

Description of how this pull request fixes the issue:

This pr moves the config check to see if annotationTypes should be fetched, up so that this variable can be used whether IUIAutomationTextRange3 is available or not.

Testing performed:

Ensuring UIA was enabled, read a basic word document that contained some spelling errors, both on builds with IUIAutomationTextRange3 available and not available. In both cases spelling errors were properly reported.

Known issues with pull request:

None.

Change log entry:

None needed.

… still reported in UI Automation documents when IUIAutomationTextRange3 is not available.
Copy link
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.

Looks good. However, I don't have an old Windows build to test this with.

@lukaszgo1
Copy link
Contributor

I've tested on the setup described in the #9176 and I can confirm that it is fixed.

@michaelDCurran michaelDCurran merged commit 423c1a7 into master Jan 23, 2019
@nvaccessAuto nvaccessAuto added this to the 2019.1 milestone Jan 23, 2019
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.

Microsoft Word with UIA spelling errors not announced when moving with arrow keys

4 participants