mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08: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)
|
if (vm == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
// We should clear all unhandled key modifiers.
|
||||||
|
_unhandledModifiers = KeyModifiers.None;
|
||||||
|
|
||||||
// Ctrl+Shift+P opens preference dialog (macOS use hotkeys in system menu bar)
|
// 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)
|
if (!OperatingSystem.IsMacOS() && e.KeyModifiers == (KeyModifiers.Control | KeyModifiers.Shift) && e.Key == Key.P)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue