Skip to content

conhost: Make screen readers announce search results - #20532

Draft
Carlos Zamora (carlos-zamora) wants to merge 1 commit into
mainfrom
dev/cazamor/conhost/bugfix-a11y-find
Draft

conhost: Make screen readers announce search results#20532
Carlos Zamora (carlos-zamora) wants to merge 1 commit into
mainfrom
dev/cazamor/conhost/bugfix-a11y-find

Conversation

@carlos-zamora

Copy link
Copy Markdown
Member

Summary of the Pull Request

Fixes a bug in console host where search results weren't being announced by the screen reader.

Adds 2 localized resources for announcements:

  • ID_CONSOLE_MSGFINDRESULT: "%1!d! of %2!d!"
  • ID_CONSOLE_MSGFINDNORESULT: "No results"

Updates the AccessibilityNotifier with a new AnnounceSearchResults() which handles making the announcements above using UiaRaiseNotificationEvent() (similar to how we make similar announcements in Windows Terminal).

The user experience itself is similar to Windows Terminal. The main difference being that Terminal announces the selection state after closing the search box (" selected"), and console host does not.

⚠️Keeping this in draft until I close on the desired UX above.

References and Relevant Issues

⚠️#20152: the off-by-1 error effects search results in this branch

Validation Steps Performed

Opened the search box and performed a search with...
✅ results --> "<1-indexed num> of "
✅no results --> "no results"

PR Checklist

Closes https://dev.azure.com/microsoft/OS/_workitems/edit/37170192/?view=edit

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.

1 participant