[PR #12841] [MERGED] Manually focus the scheme dropdown when deleting a scheme #29263

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/12841
Author: @zadjii-msft
Created: 4/6/2022
Status: ✅ Merged
Merged: 4/7/2022
Merged by: @undefined

Base: main ← Head: dev/migrie/b/11971-delete-scheme-to-default


📝 Commits (2)

  • 125e9c4 Manually focus the previous button when deleting a scheme
  • 6b59008 Discussed w/ Carlos, this seems better

📊 Changes

1 file changed (+14 additions, -0 deletions)

View changed files

📝 src/cascadia/TerminalSettingsEditor/ColorSchemes.cpp (+14 -0)

📄 Description

If we delete a scheme, and the next scheme we've loaded is an inbox one
that can't be deleted, then we need to toss focus to something
sensible, rather than letting it fall out to the tab item.

When deleting a scheme and the next scheme is deletable, this isn't an
issue, we'll already correctly focus the Delete button.

125e9c4790 focused the SelectionBackground
button, which is the previous focusable control, rather than the
following one.

However, it seems even more useful for focus to ALWAYS land on the
scheme dropdown box. This forces Narrator to read the name of the newly
selected color scheme, which seemed more useful.

I'm waiting on feedback from a11y team to see if this solution is
acceptable.


🔄 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/12841 **Author:** [@zadjii-msft](https://github.com/zadjii-msft) **Created:** 4/6/2022 **Status:** ✅ Merged **Merged:** 4/7/2022 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/migrie/b/11971-delete-scheme-to-default` --- ### 📝 Commits (2) - [`125e9c4`](https://github.com/microsoft/terminal/commit/125e9c479018ac648c80554ef3ce69f7b637857d) Manually focus the previous button when deleting a scheme - [`6b59008`](https://github.com/microsoft/terminal/commit/6b590084f62e2cf72cbc35950717c9fa99dfb9d4) Discussed w/ Carlos, this seems better ### 📊 Changes **1 file changed** (+14 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalSettingsEditor/ColorSchemes.cpp` (+14 -0) </details> ### 📄 Description If we delete a scheme, and the next scheme we've loaded is an inbox one that _can't_ be deleted, then we need to toss focus to something sensible, rather than letting it fall out to the tab item. When deleting a scheme and the next scheme _is_ deletable, this isn't an issue, we'll already correctly focus the Delete button. 125e9c479018ac648c80554ef3ce69f7b637857d focused the SelectionBackground button, which is the _previous_ focusable control, rather than the following one. However, it seems even more useful for focus to ALWAYS land on the scheme dropdown box. This forces Narrator to read the name of the newly selected color scheme, which seemed more useful. I'm waiting on feedback from a11y team to see if this solution is acceptable. * [x] Is for #11971 --- <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:33:49 +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#29263