Hi,
I try to detect the enter key on key press event:
public void onKeyPress(KeyPressEvent evt)
{
int c = evt.getNativeEvent().getCharCode();
if (c == KeyCodes.KEY_ENTER)
{
// doit();
}
}
However, when the enter key is pressed, c is always 0, but
KeyCodes.KEY_ENTER is 13.
What's the problem?
Magnus
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.