Ok, the tutorial says that to get a user pressing an enter key in a
TextBox you should write something like the following:

http://code.google.com/webtoolkit/doc/latest/tutorial/manageevents.html

        public void onKeyPress (KeyPressEvent event)
        {
                char    keyPress = event.getCharCode();
                int     keyCode = keyPress;
                if (keyPress == KeyCodes.KEY_ENTER)
                        goToRecord ();
        }

Unfortunately, when I do that, I get a keyCode of 0 for  Enter, Tab,
and Left Arrow (the keys I tested), while I get the actual key when I
type a number key.  What gives?  Is the tutorial wrong?  If so, what
should I be calling?

TIA,

Greg

-- 
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.

Reply via email to