Threaded View
-
21 Jan 2013 6:23 PM #1
Unanswered: addKeyPressHandler in textfield does not work in chrome
Unanswered: addKeyPressHandler in textfield does not work in chrome
i have added an addKeyPressHandler in textfield,but it doest not work in chrome while in IE9 it works fine.
is there any problem in my code like this:
Code:usernameField.addKeyPressHandler(new KeyPressHandler() { @Override public void onKeyPress(KeyPressEvent event) { if(event.getNativeEvent().getCharCode()+=KeyCodes.KEY_ENTER) { pwdField.focus(); } } });



Reply With Quote