弹出窗口内的 Flex 表单 - 表单之间的选项卡(顺序)不起作用
当用户单击“添加”按钮时,将打开一个弹出按钮,其中包含某些表单元素(如文本输入、日期字段、文本区域)。当我在此表单中使用“TAB”时,它不起作用。我在几个问题/论坛中发现我们需要创建 FocusManager 的实例,然后为弹出窗口带来/激活焦点。但我仍然没有看到该选项卡在表单内工作。为了在弹出窗口中按 Tab 键顺序工作,我们需要遵循哪些步骤。
我尝试使用 focusmanager 和 tabfocusenabled、tabenabled 等属性,并在每个表单元素中添加了 taborder。但没有运气。
我使用Flash Builder 4.5并使用spark组件进行开发。
有解决这个问题的方法吗?
提前致谢,
问候
斯里尼瓦桑
when user clicks on Add button, then a pop up button will be opened with certain form elements (like textinput, date field, text area).. When i used 'TAB' inside this form,it is not working. I found in couple of Questions / forums that we need to create an instance of FocusManager and then bring/activate focus for the pop up. But still i didn't see the tab working inside the form. In order to tab order working inside a pop up, what steps we need to follow.
I tried using focusmanager and property like tabfocusenabled, tabenabled and also added taborder inside each form element. But no luck.
Iam using Flash Builder 4.5 and using spark components for development.
Is there any workaround for this problem?
Thanks in Advance,
Regards
Srinivasan
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
感谢您的所有回复。
最后这个问题被我的一位同事解决了。问题是,表单已加载到水平手风琴(flexlib HACCORDION)内。因此,为了将手风琴内部的焦点吸引到子元素,我们需要为 HAccordion(水平手风琴组件)添加“hasFocusableChildren="true"”。添加此属性可以解决 Tab 键顺序问题。
我还粘贴了下面的代码:
Thanks for all your responses.
Finally the issue has been solved by one of my colleague. Problem is , the form has been loaded inside Horizontal accordion (flexlib HACCORDION). So inorder to draw focus inside the accordion to child elements, we need to add 'hasFocusableChildren="true"' for the HAccordion (horizontal accordion component). Adding this property solves the tab order problem.
I have also pasted the code below: