mirror of
https://github.com/microsoft/terminal.git
synced 2025-12-11 04:38:24 -06:00
Fix focus issue when profile selected from nested menu entry (#15077)
Original bug report #15049 Relates to feature #1571 MenuFlyoutSubItem, when collapsing from profile selection, move focus back to the titlebar. An extra Closing event handler is needed to keep focus on the command shell. Closes #15049
This commit is contained in:
parent
5ed3c76dcb
commit
def3742a2e
@ -848,6 +848,10 @@ namespace winrt::TerminalApp::implementation
|
||||
newTabFlyout.Opening([this](auto&&, auto&&) {
|
||||
_FocusCurrentTab(true);
|
||||
});
|
||||
// Necessary for fly-out sub items to get focus on a tab before collapsing. Related to #15049
|
||||
newTabFlyout.Closing([this](auto&&, auto&&) {
|
||||
_FocusCurrentTab(true);
|
||||
});
|
||||
_newTabButton.Flyout(newTabFlyout);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user