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.

Attachment: KeyEventMac.mm
Description: Binary data


Regards,
Maciej

Reply via email to