mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Accessibility: Fix focus transfer issue when hiding modal components
This commit is contained in:
parent
c66e8baf7e
commit
5d7f59a19d
1 changed files with 4 additions and 3 deletions
|
|
@ -75,10 +75,11 @@ AccessibilityHandler::~AccessibilityHandler()
|
|||
//==============================================================================
|
||||
AccessibleState AccessibilityHandler::getCurrentState() const
|
||||
{
|
||||
AccessibleState state;
|
||||
if (component.isCurrentlyBlockedByAnotherModalComponent()
|
||||
&& Component::getCurrentlyModalComponent()->isVisible())
|
||||
return {};
|
||||
|
||||
if (! component.isCurrentlyBlockedByAnotherModalComponent())
|
||||
state = state.withFocusable();
|
||||
auto state = AccessibleState().withFocusable();
|
||||
|
||||
return hasFocus (false) ? state.withFocused() : state;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue