W3C home > Mailing lists > Public > public-webapi@w3.org > May 2006

Function from Safari that has info about Windows keyCodes used in key events

From: Maciej Stachowiak <mjs@apple.com>
Date: Tue, 2 May 2006 15:02:04 -0700
To: Public Web API <public-webapi@w3.org>
Message-Id: <B16A2917-CFA8-4C24-881F-FED1A58797BC@apple.com>

The function WindowsKeyCodeForKeyEvent in this file maps from Mac OS  
X internal key codes to windows keycodes for use in event.keyCode.

Here's an example entry:

         // VK_LEFT (25) LEFT ARROW key
         case NSLeftArrowFunctionKey: return 0x25;

The value is hex 25, the Window VK constant is VK_LEFT.


Received on Tuesday, 2 May 2006 22:02:11 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:21 UTC