diff --git a/src/cascadia/TerminalApp/TerminalPage.cpp b/src/cascadia/TerminalApp/TerminalPage.cpp index 9bfaa4ef381..49ecaeefc19 100644 --- a/src/cascadia/TerminalApp/TerminalPage.cpp +++ b/src/cascadia/TerminalApp/TerminalPage.cpp @@ -855,6 +855,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); }