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:
parent
d16657ab53
commit
c29ddf7681
1 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue