Flex Accessibility - 读出标签/文本
我需要制作一个可供屏幕阅读器访问的小应用程序。
我正在设法使按钮可访问,但我还希望屏幕阅读器可以访问一段文本,以便用户可以听到文本所说的内容。
我似乎不知道如何做到这一点..我尝试了各种文本控件并将它们设置为 focusEnabled、tabEnabled,我也设置了accessibility* 属性,但它似乎从来没有工作过,我无法切换到文本标签并听到内容。
老实说,我对 Flex 的可访问性有点陌生,所以如果我遗漏了一些明显的东西,我深表歉意。
有人对此有什么建议吗?
感谢
使用 Flex 4 + Jaws
I need to make a small app accessible to screen reader.
I'm managing to make buttons accessible, but I would also like to have a section of text accessible by screen readers so that users can hear what the text says.
I can't seem to work out how to do this.. I've tried various text controls and set them as focusEnabled, tabEnabled, i've set the accessibility* attributes too but it never seems to work, I cannot tab to a text label and hear the content.
I'm honestly a little new to accessiblity in Flex so apologies if i'm missing something obvious.
Anyone has any suggestion on this?
Thanks
Using Flex 4 + Jaws
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要创建扩展相关文本组件的类并显式实现 IFocusManagerComponent。幸运的是,实现 IFocusManagerComponent 的所有方法都在 UIComponent 中实现,因此只需在子类中声明实现就足以让 FocusManager 检测到它们。
完全相同的技巧也适用于 Label。只要在您要放置面向辅助功能的文本组件的地方使用这些近乎琐碎的子类即可。
You need to make classes that extend your relevant text-components and explicitly implement IFocusManagerComponent. Luckily, all of the methods to implement IFocusManagerComponent are fulfilled in UIComponent, so merely declaring the implementation in the subclasses should be sufficient for the FocusManager to detect them.
The exact same trick works for Label. Just use these nigh-trivial subclasses where-ever you would otherwise place your accessibility-oriented textual components.