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

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

Original Pull Request: https://github.com/microsoft/terminal/pull/12841

State: closed
Merged: Yes


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.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/12841 **State:** closed **Merged:** Yes --- 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
claunia added the pull-request label 2026-01-31 09:33:50 +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#29268