组件之间的选项卡
我正在使用 Doug Mccune 的博客
我正在尝试这样做,以便在输入用户名后,我可以按 Tab 键转到密码字段,然后再次转到登录按钮。 我对 Flex 不太熟悉,所以我认为设置 tabIndex 属性可以解决这个问题,但事实并非如此。
有任何想法吗?
编辑: 经过进一步调查,问题似乎出在PhysicsContainer 上。 如果物理容器被移除,则选项卡工作不会出现问题。 不幸的是,这也违背了整个项目的重点
I'm playing around with the physics login form from Doug Mccune's blog
I'm trying to make it so that after I finish typing the username I can hit the tab key to go to the password field, and again to go to the login button. I'm a bit of a n00b with flex, so I assumed setting the tabIndex properties would solve that, but it doesn't.
Any ideas?
EDIT:
After a little further investigation, the problem appears to lie with PhysicsContainer. If the physics container is removed, the tabbing works without issue. Unfortunately that also defeats the point of the whole project
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能还需要设置 loginBtn 的 tabEnabled 属性。
如果这不能解决问题,我会尝试查看 FocusManager:
http://livedocs.adobe.com/flex/2/langref/mx/managers/FocusManager.html
You may also need to set the tabEnabled property of the loginBtn as well.
If that doesn't fix it, I'd try looking at the FocusManager:
http://livedocs.adobe.com/flex/2/langref/mx/managers/FocusManager.html