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.
如何禁用表单上的制表键,以便在按下时转到下一个按钮。
这是 qwerty 硬件键盘上的硬件 Tab 键。
您应该实现protected boolean onKeyDown(int keyCode, KeyEvent event) {},检查 ,keyCode如果键是制表符,则使用该事件。
protected boolean onKeyDown(int keyCode, KeyEvent event) {}
keyCode
希望这可以帮助!