-
Notifications
You must be signed in to change notification settings - Fork 745
Fix NVDA screen reader incorrect list count for File menu separators #2257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…accessibility tree Co-authored-by: brianrob <[email protected]>
This change fails to build with this error:
|
…work 4.6.2 Co-authored-by: brianrob <[email protected]>
Fixed in commit e20bc9e. The issue was that
This combination should help screen readers ignore the separators when counting menu items. |
This change compiles, but still states that there are 9 items in the menu, where should only be 6 consumable items. |
…tree Co-authored-by: brianrob <[email protected]>
I've tried a more comprehensive approach in commit b9e740c using multiple accessibility properties available in .NET Framework 4.6.2:
This combination of properties should help screen readers properly ignore the separators when counting menu items. The approach targets different aspects of the accessibility tree that NVDA uses for navigation. |
Copilot Post-Mortem:
Ultimately, I determined that removing the hidden items from the menu was a reasonable choice. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Problem
When using NVDA screen reader to navigate the File menu, it incorrectly announces "1 of 9" instead of "1 of 6" for menu items. This happens because WPF separators are being counted as menu items in the accessibility tree.
Root Cause Analysis
The File menu contains:
However, users typically see only 6 items because:
CanHide
method)Solution
Removed the separators and the
Hide
functionality as it's no longer relevant for newer versions of Windows. By default all PerfView windows show up under one button on the start-menu.