Not always, this particular manifests itself for special keys like the cursor keys etc. I believe quirksmode has a good table/chart which tables keycodes. Perhaps a good future enhancement might be for GWT to normalize the differences so developers can code without being aware if these quirks. Unfortunately while most of the time the codes are the same across all browsers there will of course in the spirit of browser coding be exceptions to the rule often enough to make you angry:).
On Apr 7, 12:26 pm, Jeff Chimene <[email protected]> wrote: > Hi, > > Can I reliably (cross-browser) check for a specific keycode using the > following code: > > public void onKeyDown(Widget sender, char keyCode, int modifiers) { > if ( 191 == (int)keyCode) { // question mark > Window.alert("help"); > } > > } > > TIA, > jec --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
