Browse Source

Merge pull request #7440 from emmauss/diagnostic-key

Ensure Control Inspection in Diagnostics tool window is triggered on Key Down
pull/7455/head
Max Katz 5 years ago
committed by GitHub
parent
commit
c0ec9d634b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/Avalonia.Diagnostics/Diagnostics/Views/MainWindow.xaml.cs

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

@ -169,7 +169,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