Skip to content

Commit

Permalink
Merge pull request AvaloniaUI#7440 from emmauss/diagnostic-key
Browse files Browse the repository at this point in the history
Ensure Control Inspection in Diagnostics tool window is triggered on Key Down
  • Loading branch information
maxkatz6 authored and danwalmsley committed Feb 21, 2022
1 parent 870f62f commit 3f11b01
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@ private void RawKeyDown(RawKeyEventArgs e)

switch (e.Modifiers)
{
case RawInputModifiers.Control | RawInputModifiers.Shift:
case RawInputModifiers.Control when (e.Key == Key.LeftShift || e.Key == Key.RightShift):
case RawInputModifiers.Shift when (e.Key == Key.LeftCtrl || e.Key == Key.RightCtrl):
case RawInputModifiers.Shift | RawInputModifiers.Control:
{
IControl? control = null;

Expand Down

0 comments on commit 3f11b01

Please sign in to comment.