Browse Source

Merge pull request #7440 from emmauss/diagnostic-key

Ensure Control Inspection in Diagnostics tool window is triggered on Key Down
release/0.10.13
Max Katz 5 years ago
committed by Dan Walmsley
parent
commit
3f11b014a6
  1. 4
      src/Avalonia.Diagnostics/Diagnostics/Views/MainWindow.xaml.cs

4
src/Avalonia.Diagnostics/Diagnostics/Views/MainWindow.xaml.cs

@ -163,7 +163,9 @@ namespace Avalonia.Diagnostics.Views
switch (e.Modifiers) 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; IControl? control = null;

Loading…
Cancel
Save