1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-27 02:20:05 +00:00

Accessibility: Return non-focusable AccessibleState from LabelAccessibilityHandler::getCurrentState() when the TextEditor is showing and active so focus is passed through correctly

This commit is contained in:
ed 2021-06-09 16:23:02 +01:00
parent d16657ab53
commit c29ddf7681

View file

@ -535,6 +535,14 @@ public:
return label.getText();
}
AccessibleState getCurrentState() const override
{
if (label.isBeingEdited())
return {}; // allow focus to pass through to the TextEditor
return AccessibilityHandler::getCurrentState();
}
private:
class LabelValueInterface : public AccessibilityTextValueInterface
{