1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-14 00:14:18 +00:00
This commit is contained in:
Gavin Burke 2025-07-11 04:30:17 +02:00 committed by GitHub
commit 8a99bc1a71
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 54 additions and 9 deletions

View file

@ -3064,10 +3064,10 @@ AccessibilityHandler* Component::getAccessibilityHandler()
// By assigning the accessibility handler before notifying the system that an element was
// created, the if() predicate above should evaluate to false on recursive calls,
// terminating the recursion.
if (accessibilityHandler != nullptr)
detail::AccessibilityHelpers::notifyAccessibilityEvent (*accessibilityHandler, detail::AccessibilityHelpers::Event::elementCreated);
else
jassertfalse; // createAccessibilityHandler must return non-null
// if (accessibilityHandler != nullptr)
// notifyAccessibilityEventInternal (*accessibilityHandler, InternalAccessibilityEvent::elementCreated);
// else
// jassertfalse; // createAccessibilityHandler must return non-null
}
return accessibilityHandler.get();