1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-06 04:00:08 +00:00

Accessibility: Avoid allowing TextEditor and Viewport internal components to be accessibility-focused

The TextHolderComponent and Viewport::componentHolder don't have any
accessible semantics, so they shouldn't be included in the accessible
component hierarchy.
This commit is contained in:
reuk 2022-05-30 11:47:06 +01:00
parent edddca5ac3
commit 53484db875
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11
2 changed files with 20 additions and 1 deletions

View file

@ -868,6 +868,12 @@ struct TextEditor::TextHolderComponent : public Component,
TextEditor& owner;
private:
std::unique_ptr<AccessibilityHandler> createAccessibilityHandler() override
{
return createIgnoredAccessibilityHandler (*this);
}
JUCE_DECLARE_NON_COPYABLE (TextHolderComponent)
};
@ -894,6 +900,11 @@ struct TextEditor::TextEditorViewport : public Viewport
}
private:
std::unique_ptr<AccessibilityHandler> createAccessibilityHandler() override
{
return createIgnoredAccessibilityHandler (*this);
}
TextEditor& owner;
int lastWordWrapWidth = 0;
bool reentrant = false;