mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
fix: always trait Atl/Ctrl/Shift
as key modifers (#351)
This commit is contained in:
parent
0646db36a4
commit
69178838be
1 changed files with 10 additions and 0 deletions
|
@ -153,9 +153,19 @@ namespace SourceGit.Views
|
||||||
|
|
||||||
base.OnKeyDown(e);
|
base.OnKeyDown(e);
|
||||||
|
|
||||||
|
// Record unhandled key modifers.
|
||||||
if (!e.Handled)
|
if (!e.Handled)
|
||||||
{
|
{
|
||||||
_unhandledModifiers = e.KeyModifiers;
|
_unhandledModifiers = e.KeyModifiers;
|
||||||
|
|
||||||
|
if (!_unhandledModifiers.HasFlag(KeyModifiers.Alt) && (e.Key == Key.LeftAlt || e.Key == Key.RightAlt))
|
||||||
|
_unhandledModifiers |= KeyModifiers.Alt;
|
||||||
|
|
||||||
|
if (!_unhandledModifiers.HasFlag(KeyModifiers.Control) && (e.Key == Key.LeftCtrl || e.Key == Key.RightCtrl))
|
||||||
|
_unhandledModifiers |= KeyModifiers.Control;
|
||||||
|
|
||||||
|
if (!_unhandledModifiers.HasFlag(KeyModifiers.Shift) && (e.Key == Key.LeftShift || e.Key == Key.RightShift))
|
||||||
|
_unhandledModifiers |= KeyModifiers.Shift;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue