From ead2af7d6525b71b373abbe9a8727c44760eb438 Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 26 Aug 2024 11:00:03 +0800 Subject: [PATCH] enhance: clear unhandled modifiers at begining of OnKeyDown --- src/Views/Launcher.axaml.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Views/Launcher.axaml.cs b/src/Views/Launcher.axaml.cs index 4b5b2889..49bcecf0 100644 --- a/src/Views/Launcher.axaml.cs +++ b/src/Views/Launcher.axaml.cs @@ -83,6 +83,9 @@ namespace SourceGit.Views if (vm == null) return; + // We should clear all unhandled key modifiers. + _unhandledModifiers = KeyModifiers.None; + // Ctrl+Shift+P opens preference dialog (macOS use hotkeys in system menu bar) if (!OperatingSystem.IsMacOS() && e.KeyModifiers == (KeyModifiers.Control | KeyModifiers.Shift) && e.Key == Key.P) {