[PR #13519] [MERGED] [a11y] Make CommandPalette announce selected item #29607

Open
opened 2026-01-31 09:35:53 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/13519
Author: @carlos-zamora
Created: 7/16/2022
Status: Merged
Merged: 8/26/2022
Merged by: @undefined

Base: mainHead: dev/cazamor/a11y-sev3/12065


📝 Commits (1)

  • 3a5ffdf [a11y] Make CommandPalette announce selected item

📊 Changes

3 files changed (+31 additions, -0 deletions)

View changed files

📝 src/cascadia/TerminalApp/CommandPalette.cpp (+28 -0)
📝 src/cascadia/TerminalApp/CommandPalette.h (+2 -0)
📝 src/cascadia/TerminalApp/CommandPalette.xaml (+1 -0)

📄 Description

Summary of the Pull Request

The command palette (and tab search by extension) doesn't ever tell screen readers what is selected. Here, we simply hook up the selection changed event to a function that tells the screen reader what is selected. With this, the user no longer has to tab into the list view to know what is selected!

Will resolve the following bug upon validation from a11y team: #12065

Validation Steps Performed

Performed repro steps from #12065.

NOTE: we do NOT read the selected item when the command palette is first opened. I think that's ok.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/13519 **Author:** [@carlos-zamora](https://github.com/carlos-zamora) **Created:** 7/16/2022 **Status:** ✅ Merged **Merged:** 8/26/2022 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/cazamor/a11y-sev3/12065` --- ### 📝 Commits (1) - [`3a5ffdf`](https://github.com/microsoft/terminal/commit/3a5ffdf4471357c6d16a89e1fec13af813b64fa4) [a11y] Make CommandPalette announce selected item ### 📊 Changes **3 files changed** (+31 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/CommandPalette.cpp` (+28 -0) 📝 `src/cascadia/TerminalApp/CommandPalette.h` (+2 -0) 📝 `src/cascadia/TerminalApp/CommandPalette.xaml` (+1 -0) </details> ### 📄 Description ## Summary of the Pull Request The command palette (and tab search by extension) doesn't ever tell screen readers what is selected. Here, we simply hook up the selection changed event to a function that tells the screen reader what is selected. With this, the user no longer has to tab into the list view to know what is selected! Will resolve the following bug upon validation from a11y team: #12065 ## Validation Steps Performed Performed repro steps from #12065. NOTE: we do NOT read the selected item when the command palette is first opened. I think that's ok. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:35:53 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#29607