mirror of
https://github.com/AtomUI/AtomUI.git
synced 2026-10-27 12:17:42 +08:00
fix(ComboBox): restore keyboard reselection for v6.1.4
This commit is contained in:
@@ -910,7 +910,16 @@ public class ComboBox : AvaloniaComboBox,
|
||||
private void HandlePopupOpened(object? sender, EventArgs e)
|
||||
{
|
||||
RefreshFilteredItemVisibility();
|
||||
FocusEditableTextBox(NavigationMethod.Unspecified);
|
||||
|
||||
if (IsEditable)
|
||||
{
|
||||
FocusEditableTextBox(NavigationMethod.Unspecified);
|
||||
}
|
||||
else if (TopLevel.GetTopLevel(this)?.FocusManager.GetFocusedElement() is Visual focusedVisual &&
|
||||
_popup?.IsInsidePopup(focusedVisual) == true)
|
||||
{
|
||||
Focus(NavigationMethod.Unspecified);
|
||||
}
|
||||
}
|
||||
|
||||
private void HandleEditableTextBoxTextInput(TextInputEventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user