Skip to content

Fix up of 11738: Force UIA for BrokenCommctrl5Item controls, even though they don't support UIA natively#11828

Merged
michaelDCurran merged 3 commits into
nvaccess:masterfrom
lukaszgo1:I11797
Nov 12, 2020
Merged

Fix up of 11738: Force UIA for BrokenCommctrl5Item controls, even though they don't support UIA natively#11828
michaelDCurran merged 3 commits into
nvaccess:masterfrom
lukaszgo1:I11797

Conversation

@lukaszgo1

Copy link
Copy Markdown
Contributor

Link to issue number:

Fixes #11797

Summary of the issue:

In #11738 before using UIA for a particular control we added a check to ensure that the control in question supports UIA natively. This unfortunately broke access to tree view items used in Windows HTML help since for these controls we're using UIA explicitly even though they're not native (MSAA is broken for them).

Description of how this pull request fixes the issue:

I've added additional kwarg to UIA.kwargsFromSuper which allows to disable this check for a particular control and disabled it for BrokenCommctrl5Item. While at it I've also made error logged when we cannot get UIA element for these tree view items an error rather than debugWarning to make debugging such issues easier in the future.

Testing performed:

Ensured that tree view items in HTML help are once again readable.

Known issues with pull request:

None known

Change log entry:

None needed - this bug is not in a release yet.

@lukaszgo1

Copy link
Copy Markdown
Contributor Author

cc @michaelDCurran

Comment thread source/NVDAObjects/UIA/__init__.py Outdated
@lukaszgo1

Copy link
Copy Markdown
Contributor Author

@michaelDCurran Done.

@michaelDCurran michaelDCurran merged commit 617f865 into nvaccess:master Nov 12, 2020
@nvaccessAuto nvaccessAuto added this to the 2020.4 milestone Nov 12, 2020
@lukaszgo1 lukaszgo1 deleted the I11797 branch November 12, 2020 06:20
michaelDCurran pushed a commit that referenced this pull request Apr 20, 2021
…oesn't support UIA natively (#12241)

PR #11738 made it impossible to use UIA for controls which doesn't report as native UIA. This decreased accessibility of Outlook's messages list in some versions of Outlook (certainly for 2010 and possibly for 2013) which reports as non native UIA.

Description of how this pull request fixes the issue:
Similar to the fix in #11828 for these controls the fact that they're non native UIA is ignored.
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 says "unknown" for tree view items in some CHM files

3 participants