Browse Source

Accessibility: Send focus change notification in Component::enterModalState()

v6.1.6
ed 4 years ago
parent
commit
82a5911d56
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      modules/juce_gui_basics/components/juce_Component.cpp

+ 3
- 0
modules/juce_gui_basics/components/juce_Component.cpp View File

@@ -1702,6 +1702,9 @@ void Component::enterModalState (bool shouldTakeKeyboardFocus,
if (shouldTakeKeyboardFocus)
grabKeyboardFocus();
if (auto* handler = getAccessibilityHandler())
notifyAccessibilityEventInternal (*handler, InternalAccessibilityEvent::focusChanged);
}
else
{


Loading…
Cancel
Save