From 82a5911d56f301c6e620f273cf4912f1296d46f6 Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 20 May 2021 17:57:20 +0100 Subject: [PATCH] Accessibility: Send focus change notification in Component::enterModalState() --- modules/juce_gui_basics/components/juce_Component.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/juce_gui_basics/components/juce_Component.cpp b/modules/juce_gui_basics/components/juce_Component.cpp index edc47290a7..176c13d09d 100644 --- a/modules/juce_gui_basics/components/juce_Component.cpp +++ b/modules/juce_gui_basics/components/juce_Component.cpp @@ -1702,6 +1702,9 @@ void Component::enterModalState (bool shouldTakeKeyboardFocus, if (shouldTakeKeyboardFocus) grabKeyboardFocus(); + + if (auto* handler = getAccessibilityHandler()) + notifyAccessibilityEventInternal (*handler, InternalAccessibilityEvent::focusChanged); } else {