I had the same issue, Did you check on other browsers, because in some browsers it worked
On Wed, Apr 27, 2011 at 3:52 PM, julio <antongiuli...@gmail.com> wrote: > Hi, > > I'm using GWT 2.2 and I have: > > @UiField InputElement searchText; > > TextBox.wrap(searchText).addKeyPressHandler(new KeyPressHandler() { > public void onKeyPress(KeyPressEvent event) { > if (event.getCharCode() == > KeyCodes.KEY_ENTER) > doSomething(); > } > }); > > the event is triggered correctly for all the characters, the condition > doesn't work for 'enter' and 'tab'. Displaying the numeric values > returned for them with event.getUnicodeCharCode(), I got 0. > > Is it a bug or maybe I'm missing something? > > Thanks > Julio > > -- > 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. > > -- Riyaz 9916220381 -- 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.