newSymbolTextBox = new TextBox();
                newSymbolTextBox.addKeyPressHandler(new KeyPressHandler() {
                        public void onKeyPress(KeyPressEvent event) {
                                
Window.alert("keycode:"+(int)event.getCharCode());
                                if (event.getCharCode() == KeyCodes.KEY_ENTER){
                                        addStock();
                                }

                        }
                });

in ie. when i press enter  key, event.getCharCode() is 13.
in Firefox9, when i press enter key, enent.getCharCode() is 0.

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