The TextHolderComponent and Viewport::componentHolder don't have any accessible semantics, so they shouldn't be included in the accessible component hierarchy.pull/22/head
| @@ -337,8 +337,16 @@ protected: | |||||
| private: | private: | ||||
| //============================================================================== | //============================================================================== | ||||
| class AccessibilityIgnoredComponent : public Component | |||||
| { | |||||
| std::unique_ptr<AccessibilityHandler> createAccessibilityHandler() override | |||||
| { | |||||
| return createIgnoredAccessibilityHandler (*this); | |||||
| } | |||||
| }; | |||||
| std::unique_ptr<ScrollBar> verticalScrollBar, horizontalScrollBar; | std::unique_ptr<ScrollBar> verticalScrollBar, horizontalScrollBar; | ||||
| Component contentHolder; | |||||
| AccessibilityIgnoredComponent contentHolder; | |||||
| WeakReference<Component> contentComp; | WeakReference<Component> contentComp; | ||||
| Rectangle<int> lastVisibleArea; | Rectangle<int> lastVisibleArea; | ||||
| int scrollBarThickness = 0; | int scrollBarThickness = 0; | ||||
| @@ -868,6 +868,12 @@ struct TextEditor::TextHolderComponent : public Component, | |||||
| TextEditor& owner; | TextEditor& owner; | ||||
| private: | |||||
| std::unique_ptr<AccessibilityHandler> createAccessibilityHandler() override | |||||
| { | |||||
| return createIgnoredAccessibilityHandler (*this); | |||||
| } | |||||
| JUCE_DECLARE_NON_COPYABLE (TextHolderComponent) | JUCE_DECLARE_NON_COPYABLE (TextHolderComponent) | ||||
| }; | }; | ||||
| @@ -894,6 +900,11 @@ struct TextEditor::TextEditorViewport : public Viewport | |||||
| } | } | ||||
| private: | private: | ||||
| std::unique_ptr<AccessibilityHandler> createAccessibilityHandler() override | |||||
| { | |||||
| return createIgnoredAccessibilityHandler (*this); | |||||
| } | |||||
| TextEditor& owner; | TextEditor& owner; | ||||
| int lastWordWrapWidth = 0; | int lastWordWrapWidth = 0; | ||||
| bool reentrant = false; | bool reentrant = false; | ||||