Firefox 和 Internet Explorer 中 Flash Tab 焦点行为不同
在属于大型 Flash 游戏的迷你游戏中,我们显示了许多可编辑的文本字段,大约 10 行,每行有两个文本字段。两个文本字段的每一行都封装在一个类中,并且该类型的对象放置在彼此之下,使其看起来像某种表格。
现在,在 Firefox 上,选项卡行为很好,在手动聚焦第一个文本字段后,选项卡键首先将焦点移动到右侧,然后移动到下一行,再次移动到右侧,依此类推...
在 Internet Explorer 8 中(使用 flash 播放器版本) 10) 焦点直接移动到下一行,忽略当前行右侧的字段。
这是我第一次注意到 Firefox 中的 Flash 播放器与 Internet Explorer 中的 Flash 播放器之间的真正区别。有谁知道为什么他们的反应不同以及该怎么办?
我确实尝试设置手动制表符顺序,但这没有任何区别。 (所以我可能做错了)
In a minigame that is part of a larger flash game we show a number of editable textfields, about 10 rows with two textfields per row. Every row of two textfields is encapsulated in a class, and objects of that type are placed under each other so that it looks like some sort of table.
Now on Firefox the tab behavior is fine, after manually focusing the first textfield the tab key moves the focus first to the right, then to the next row, again to the right, etc...
In Internet Explorer 8 (using flash player version 10) the focus moves directly to the next row, ignoring the field to the right of the current one.
This is one of the first times I've noticed a real difference between the flash player in Firefox and the one in Internet Explorer. Does anyone know why they are reacting differently and what to do about it?
I did try to set a manual tab-order, this did not make any difference. (So I probably did it wrong)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题的根源在于,这是一个包装在 Flex 应用程序中的“纯”AS3 应用程序 - 用作包装器的 UIComponent 需要设置 tabChildren 属性,这样可用的 FocusManager 就可以在我们需要的地方工作仅为迷你游戏创建一个单独的 FocusManager。进行这些更改使问题消失。
The source of the problem was that this was a 'pure' AS3 application wrapped in a Flex application - the UIComponent that was used as a wrapper needed the tabChildren property to be set, this way the available FocusManager would just work where before we needed to create a separate FocusManager just for the minigame. Making these changes made the problem go away.