mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Accessibility: Don't give focus to currently keyboard focused component in AccessibilityHandler::giveAwayFocusInternal()
This commit is contained in:
parent
1028b6e5d1
commit
17ca903aaa
1 changed files with 1 additions and 4 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue