From 0f62ec81d84e8abb97bece2b3e89f82f6fe09f42 Mon Sep 17 00:00:00 2001 From: Mike Griese Date: Fri, 24 May 2019 15:04:00 -0500 Subject: [PATCH] Eat all tap keypresses no matter what. (#985) Fixes #744 --- src/cascadia/TerminalControl/TermControl.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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); }