Skip to content

Commit 3f11b01

Browse files
maxkatz6danwalmsley
authored andcommitted
Merge pull request AvaloniaUI#7440 from emmauss/diagnostic-key
Ensure Control Inspection in Diagnostics tool window is triggered on Key Down
1 parent 870f62f commit 3f11b01

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,9 @@ private void RawKeyDown(RawKeyEventArgs e)
163163

164164
switch (e.Modifiers)
165165
{
166-
case RawInputModifiers.Control | RawInputModifiers.Shift:
166+
case RawInputModifiers.Control when (e.Key == Key.LeftShift || e.Key == Key.RightShift):
167+
case RawInputModifiers.Shift when (e.Key == Key.LeftCtrl || e.Key == Key.RightCtrl):
168+
case RawInputModifiers.Shift | RawInputModifiers.Control:
167169
{
168170
IControl? control = null;
169171

0 commit comments

Comments
 (0)