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:
parent
f97355b9f6
commit
242405323e
1 changed files with 3 additions and 0 deletions
|
|
@ -523,6 +523,9 @@ static void comboBoxPopupMenuFinishedCallback (int result, ComboBox* combo)
|
|||
|
||||
if (result != 0)
|
||||
combo->setSelectedId (result);
|
||||
|
||||
if (auto* handler = combo->getAccessibilityHandler())
|
||||
handler->grabFocus();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue