diff --git a/src/cascadia/TerminalApp/TerminalPage.cpp b/src/cascadia/TerminalApp/TerminalPage.cpp index f20c106ee0b..3bda453f2af 100644 --- a/src/cascadia/TerminalApp/TerminalPage.cpp +++ b/src/cascadia/TerminalApp/TerminalPage.cpp @@ -924,6 +924,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); }