|
|
|
@@ -319,10 +319,7 @@ void AccessibilityHandler::grabFocusInternal (bool canTryParent) |
|
|
|
void AccessibilityHandler::giveAwayFocusInternal() const
|
|
|
|
{
|
|
|
|
currentlyFocusedHandler = nullptr;
|
|
|
|
|
|
|
|
if (auto* focusedComponent = Component::getCurrentlyFocusedComponent())
|
|
|
|
if (auto* handler = focusedComponent->getAccessibilityHandler())
|
|
|
|
handler->grabFocus();
|
|
|
|
notifyAccessibilityEventInternal (*this, InternalAccessibilityEvent::focusChanged);
|
|
|
|
}
|
|
|
|
|
|
|
|
void AccessibilityHandler::takeFocus()
|
|
|
|
|