1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

ComboBox: Fix accessibility navigation when the PopupMenu has a parent component

With the PopupMenu creating its own window the focus would return to the
ComboBox after activating a menu item. Prior to this commit however the
focus was seemingly lost after menu item activation. With this change
the focus returns to the ComboBox in both cases.
This commit is contained in:
attila 2025-07-25 17:29:36 +02:00 committed by Attila Szarvas
parent f97355b9f6
commit 242405323e

View file

@ -523,6 +523,9 @@ static void comboBoxPopupMenuFinishedCallback (int result, ComboBox* combo)
if (result != 0)
combo->setSelectedId (result);
if (auto* handler = combo->getAccessibilityHandler())
handler->grabFocus();
}
}