[PR #8377] Make command palette ephemeral #27180

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

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

State: closed
Merged: Yes


So the implementation is somewhat dirty.
The ideas was nice - add lostFocusHandler

However it broke few things:

  • In the TabSwitcher the ListItem must be focusable since otherwise
    the SingleSelectionMode behavior breaks.
    To address this I had to put the lostFocusHandler on the items as well

  • When you click the flyout, the palette loses focus,
    which makes the terminal page to set the focus on the tab, closing the flyout.
    To address this I had to ensure the tab won't get focused once the flyout is open.
    In addition, flyout should fix the focus before opening,
    otherwise alt+tab will put a focus on a tab row rather than on tab

  • I also had to close the palette if the tab order changes.
    To prevent inconsistencies.

Closes #8355

**Original Pull Request:** https://github.com/microsoft/terminal/pull/8377 **State:** closed **Merged:** Yes --- So the implementation is somewhat dirty. The ideas was nice - add lostFocusHandler However it broke few things: * In the TabSwitcher the ListItem must be focusable since otherwise the SingleSelectionMode behavior breaks. To address this I had to put the lostFocusHandler on the items as well * When you click the flyout, the palette loses focus, which makes the terminal page to set the focus on the tab, closing the flyout. To address this I had to ensure the tab won't get focused once the flyout is open. In addition, flyout should fix the focus before opening, otherwise alt+tab will put a focus on a tab row rather than on tab * I also had to close the palette if the tab order changes. To prevent inconsistencies. Closes #8355
claunia added the pull-request label 2026-01-31 09:20:28 +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#27180