Browse Source

don't set key event to handled when selection changes with space or enter

pull/9629/head
Emmanuel Hansen 4 years ago
parent
commit
a691e7c8fa
  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