mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-21 21:30:37 +08:00
enhance: clear unhandled modifiers at begining of OnKeyDown
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user