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();
                }
            }
        });