W3C home > Mailing lists > Public > public-webapi@w3.org > April 2008

Re: [DOM3Events] keyCode and charCode data requested

From: Darin Adler <darin@apple.com>
Date: Mon, 28 Apr 2008 09:32:45 -0700
To: Andrew Emmons <andrew.emmons@quickoffice.com>
Cc: "public-webapi@w3.org" <public-webapi@w3.org>
Message-id: <12896E0C-4C69-4BE0-8720-5302D3335487@apple.com>

On Apr 28, 2008, at 5:40 AM, Andrew Emmons wrote:

> Regarding keyCode and charCode, we would like to request data for  
> these commonly used event attributes across various implementations  
> and platforms. The results should look like the following:
>
> http://lists.w3.org/Archives/Public/www-archive/2006Nov/att-0047/keyCode-ie.htm 
> , except that, where it is supported by the implementation, charCode  
> is also tested.
>
> Please e-mail your results to this list, indicating the  
> implementation and platform tested.
>
> You can use the following tools: http://www.w3.org/2002/09/tests/keys-cancel2.html 
> , or http://people.w3.org/rishida/utils/keyevents/.

I did a quick test of Safari 3.1.1 with today's tip of tree WebKit  
(2008-04-28) on Mac OS X 10.5.2, with an Apple Wireless Keyboard <http://images.apple.com/keyboard/images/gallery/wireless_1_20070813.jpg 
 >.

The results I got exactly match <http://lists.w3.org/Archives/Public/www-archive/2006Nov/att-0047/keyCode-ie.htm 
 >, with three exceptions:

     1) For Caps Lock, when turning it on, I get

         20    -    -

     And when turning it off, I get:

         20    -    20

     I believe this is a bug.

     2) For Esc, I get:

         27    -    27

     So, no keypress event. Probably also a bug.

     3) I couldn't find a Pause button.

I also noticed some keys missing from that keyCode-ie chart, including  
these four  ~`-+  as well as the arrow keys.

I'm not sure what the column for keyup in that chart is good for. At  
the moment it just seems to document that Tab moves you out of the  
field.

     -- Darin
Received on Monday, 28 April 2008 21:33:24 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 28 April 2008 21:33:34 GMT