Browse Source

fixes(ComboBox): Closing window on Alt+F4 KeyDown when ComboBox is focused

pull/6151/head
Giuseppe Lippolis 5 years ago
parent
commit
f94e4eb9e7
  1. 2
      src/Avalonia.Controls/ComboBox.cs

2
src/Avalonia.Controls/ComboBox.cs

@ -205,7 +205,7 @@ namespace Avalonia.Controls
if (e.Handled)
return;
if (e.Key == Key.F4 ||
if ((e.Key == Key.F4 && e.KeyModifiers.HasAllFlags(KeyModifiers.Alt) == false) ||
((e.Key == Key.Down || e.Key == Key.Up) && e.KeyModifiers.HasAllFlags(KeyModifiers.Alt)))
{
IsDropDownOpen = !IsDropDownOpen;

Loading…
Cancel
Save