Browse Source

Accessibility: Don't give focus to currently keyboard focused component in AccessibilityHandler::giveAwayFocusInternal()

v6.1.6
ed 4 years ago
parent
commit
17ca903aaa
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      modules/juce_gui_basics/accessibility/juce_AccessibilityHandler.cpp

+ 1
- 4
modules/juce_gui_basics/accessibility/juce_AccessibilityHandler.cpp View File

@@ -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…
Cancel
Save