W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2010

Re: [DOM3Events] keyCode and charCode

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 16 Sep 2010 00:43:40 -0700
Message-ID: <4C91CAAC.6040605@mit.edu>
To: Simon Pieters <simonp@opera.com>
CC: www-dom@w3.org
On 9/16/10 12:19 AM, Simon Pieters wrote:
> Please specify keyCode and charCode, even if marked as 'obsolete'.

Agreed.  These do need to be specified, for web compat.

> I'm pretty sure no browser is going to ship without at least one of them. (I
> notice that charCode is undefined in Opera, keyCode always returns 0 in
> Firefox, and in WebKit they both work.)

keyCode works fine in Firefox with US keyboard layouts.  Other keyboard 
layouts may not work, though.

-Boris
Received on Thursday, 16 September 2010 07:44:14 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:05 GMT