Smartclient 8.1
I'd like to use the Enter key instead of the Tab key to navigate the form fields, how do I accomplish that?
I'd like to use the Enter key instead of the Tab key to navigate the form fields, how do I accomplish that?
@Override protected void onInit() { dfIPPort.focusInItem("tiPort"); this.addKeyPressHandler(new KeyPressHandler() { @Override public void onKeyPress(KeyPressEvent keyPressEvent) { SC.say(keyPressEvent.getKeyName()); if(keyPressEvent.getKeyName().equals("escape")) { destroy(); } } }); }
Comment