http://code.google.com/p/google-web-toolkit/issues/detail?id=5612

-Ben

On Apr 6, 11:23 am, Vicky <solid....@gmail.com> wrote:
> I was going through the tutorial available on GWT website for
> StockWatcher application and testing the application as described in
> Step4: Manage Events on the Client.
>
> Below piece of code behaves differently in Firefox and IE7. In IE7
> this works well, i.e. If I enter some junk characters in Text field
> and hit Enter "event.getCharCode() == KeyCodes.KEY_ENTER" line gets
> executed successfully and I could see an alert message. However this
> same line does not work, if I use Firefox.
>
> When I use Firefox, event.getCharCode returns some junk character.
> What am I doing wrong here? or is this expected behaviour?
>
> newSymbolTextBox.addKeyPressHandler(new KeyPressHandler() {
>               public void onKeyPress(KeyPressEvent event) {
>                 if (event.getCharCode() == KeyCodes.KEY_ENTER) {
>                   addStock();
>                 }
>               }
>             });

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to