mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-10-31 13:03:20 -07:00
enhance: clear unhandled modifiers at begining of OnKeyDown
This commit is contained in:
parent
ac95fac443
commit
ead2af7d65
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue