- Open this page: http://www.quirksmode.org/js/keys.html with both browsers (Internet Explorer and Firefox). - Choose the "keypress" event for Testing. - Click on a numeric key (0,1,2,3 ... 9)
You'll see that the FF and IE have different results. * IE for key "2" keypress keyCode is 50 charCode is undefined * FF for key "2" keypress keyCode is 0 charCode is 50 * Chrome for key "2" keypress keyCode is 50 charCode is 50 So, it seems that Chrome is the nicest browser here -- but why do we have this discrepancy? shouldn't the Event class (which is a wrapper on NativeEvent) provide the same results like Chrome for any browser? Thanks! -- 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.
