diff --git a/src/cascadia/TerminalControl/TermControl.cpp b/src/cascadia/TerminalControl/TermControl.cpp index 6f51d222230..0eacbc9bbbe 100644 --- a/src/cascadia/TerminalControl/TermControl.cpp +++ b/src/cascadia/TerminalControl/TermControl.cpp @@ -552,6 +552,14 @@ namespace winrt::Microsoft::Terminal::TerminalControl::implementation } } + // Manually prevent keyboard navigation with tab. We want to send tab to + // the terminal, and we don't want to be able to escape focus of the + // control with tab. + if (e.OriginalKey() == VirtualKey::Tab) + { + handled = true; + } + e.Handled(handled); }