mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -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);
|
||||
|
||||
// Record unhandled key modifers.
|
||||
if (!e.Handled)
|
||||
{
|
||||
_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