Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将焦点设置到下一个选项卡索引?
我有一个包含几个小部件的表单,我想处理 tab 键向下,将焦点从 A 小部件设置到 B
您可以使用
setTabIndex(int);
将焦点从小部件 A 设置到小部件 B 的方法。