Fix up from #12210: Excel without UIA enabled: again allow typing and editing in cells #12321
Merged
Conversation
…as test code left over from pr #12210.
…nore MSAA focus events on EXCEL6 (old formula edit) window, as they are not needed as Excel will fire a more useful UI Automation focus event on an edit control within the active cell.
seanbudd
approved these changes
Apr 22, 2021
seanbudd
left a comment
Member
There was a problem hiding this comment.
Tested using the suggested method in the PR, and confirmed that the original issue is fixed. LGTM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 #12303
Summary of the issue:
After merging of pr #12210 editing cells in Excel without UIA enabled became im possible as NVDA did not report / track focus had ented the Cell Edit control.
This was due to the EXCEL6 window accidentally being marked as having a good UIA implementation. This was testing code left over from the early implementation of #12210.
Description of how this pull request fixes the issue:
Remove EXCEL6 from the good UIA windows list.
Also ensure that MSAA focus events on this window are ignored when using Excel with UIA enabled, as Excel will fire its own UIA focus event on an edit control within the active cell.
Testing strategy:
Testing with all combinations of NvDA's use Microsoft Excel with UI Automation setting, and Excel's allow directly editing in a cell setting (4 different variations possible):
In an Excel spreadsheet:
This was successful for all 4 variations of the two settings.
Known issues with pull request:
None known.
Change log entries:
None needed.
Code Review Checklist: