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 键从每个按钮移动,但我不能使用键盘向上、向下、向右或向左移动。启用此功能的命令是什么?thx
VerticalPanel panel =//; panel.addDomHandler(new KeyUpHandler() { @Override public void onKeyUp(KeyUpEvent event) { switch (event.getNativeKeyCode()) { case KeyCodes.KEY_LEFT: //... case KeyCodes.KEY_RIGHT: } } }, KeyUpEvent.getType());