[PR #12558] When we delete a profile, focus the delete button automatically #29115

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

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

State: closed
Merged: Yes


This sure is bodgy, but it makes sense. Right now, when we delete a profile, we load in a totally new content for the new profile's settings. That one resets the scroll view and the focus, and now the "delete" button is obviously not focused.

Instead, this PR will manually re-focus the delete button of a profile page when the page is navigated to because we deleted another profile.

  • This will take care of #11971
  • I work here
  • tested manually
**Original Pull Request:** https://github.com/microsoft/terminal/pull/12558 **State:** closed **Merged:** Yes --- This sure is bodgy, but it makes sense. Right now, when we delete a profile, we load in a totally new content for the new profile's settings. That one resets the scroll view and the focus, and now the "delete" button is obviously not focused. Instead, this PR will manually re-focus the delete button of a profile page when the page is navigated to _because we deleted another profile_. * [x] This will take care of #11971 * [x] I work here * [x] tested manually
claunia added the pull-request label 2026-01-31 09:32:54 +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#29115