From a19abafa9223dc1b82fde4763f506bae20433a10 Mon Sep 17 00:00:00 2001 From: Mike Griese Date: Tue, 9 Jun 2020 15:00:19 -0500 Subject: [PATCH] Don't send a manual F7 keyup --- src/cascadia/TerminalControl/TermControl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cascadia/TerminalControl/TermControl.cpp b/src/cascadia/TerminalControl/TermControl.cpp index 653a2cdf55f..40357735e0c 100644 --- a/src/cascadia/TerminalControl/TermControl.cpp +++ b/src/cascadia/TerminalControl/TermControl.cpp @@ -706,7 +706,8 @@ namespace winrt::Microsoft::Terminal::TerminalControl::implementation { // _TrySendKeyEvent pretends it didn't handle F7 for some unknown reason. (void)_TrySendKeyEvent(VK_F7, 0, modifiers, true); - (void)_TrySendKeyEvent(VK_F7, 0, modifiers, false); + // GH#6438: Note that we're _not_ sending the key up here - that'll + // get passed through XAML to our KeyUp handler normally. handled = true; }