Browse Source

Merge pull request #9629 from AvaloniaUI/combox_selection

Don't set key event to handled if selection control receives Enter or Space key events
pull/9464/head
Max Katz 4 years ago
committed by GitHub
parent
commit
76b2d467ae
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Avalonia.Controls/Primitives/SelectingItemsControl.cs

2
src/Avalonia.Controls/Primitives/SelectingItemsControl.cs

@ -588,7 +588,7 @@ namespace Avalonia.Controls.Primitives
} }
else if (e.Key == Key.Space || e.Key == Key.Enter) else if (e.Key == Key.Space || e.Key == Key.Enter)
{ {
e.Handled = UpdateSelectionFromEventSource( UpdateSelectionFromEventSource(
e.Source, e.Source,
true, true,
e.KeyModifiers.HasFlag(KeyModifiers.Shift), e.KeyModifiers.HasFlag(KeyModifiers.Shift),

Loading…
Cancel
Save