tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

NativeKeyCodes.js (30014B)


      1 /**
      2 * This file defines all virtual keycodes for synthesizeNativeKey() of
      3 * EventUtils.js and nsIDOMWindowUtils.sendNativeKeyEvent().
      4 * These values are defined in each platform's SDK or documents.
      5 */
      6 
      7 function _defineConstant(name, value) {
      8  Object.defineProperty(this, name, {
      9    value,
     10    enumerable: true,
     11    writable: false,
     12  });
     13 }
     14 
     15 // Windows
     16 // Windows' native key code values may include scan code value which can be
     17 // retrieved with |((code & 0xFFFF0000 >> 16)|.  If the value is 0, it will
     18 // be computed with active keyboard layout automatically.
     19 // FYI: Don't define scan code here for printable keys, numeric keys and
     20 //      IME keys because they depend on active keyboard layout.
     21 // XXX: Although, ABNT C1 key depends on keyboard layout in strictly speaking.
     22 //      However, computing its scan code from the virtual keycode,
     23 //      WIN_VK_ABNT_C1, doesn't work fine (computed as 0x0073, "IntlRo").
     24 //      Therefore, we should specify it here explicitly (it should be 0x0056,
     25 //      "IntlBackslash").  Fortunately, the key always generates 0x0056 with
     26 //      any keyboard layouts as far as I've tested.  So, this must be safe to
     27 //      test new regressions.
     28 
     29 const WIN_VK_LBUTTON = 0x00000001;
     30 _defineConstant("WIN_VK_LBUTTON", WIN_VK_LBUTTON);
     31 const WIN_VK_RBUTTON = 0x00000002;
     32 _defineConstant("WIN_VK_RBUTTON", WIN_VK_RBUTTON);
     33 const WIN_VK_CANCEL = 0xe0460003;
     34 _defineConstant("WIN_VK_CANCEL", WIN_VK_CANCEL);
     35 const WIN_VK_MBUTTON = 0x00000004;
     36 _defineConstant("WIN_VK_MBUTTON", WIN_VK_MBUTTON);
     37 const WIN_VK_XBUTTON1 = 0x00000005;
     38 _defineConstant("WIN_VK_XBUTTON1", WIN_VK_XBUTTON1);
     39 const WIN_VK_XBUTTON2 = 0x00000006;
     40 _defineConstant("WIN_VK_XBUTTON2", WIN_VK_XBUTTON2);
     41 const WIN_VK_BACK = 0x000e0008;
     42 _defineConstant("WIN_VK_BACK", WIN_VK_BACK);
     43 const WIN_VK_TAB = 0x000f0009;
     44 _defineConstant("WIN_VK_TAB", WIN_VK_TAB);
     45 const WIN_VK_CLEAR = 0x004c000c;
     46 _defineConstant("WIN_VK_CLEAR", WIN_VK_CLEAR);
     47 const WIN_VK_RETURN = 0x001c000d;
     48 _defineConstant("WIN_VK_RETURN", WIN_VK_RETURN);
     49 const WIN_VK_SHIFT = 0x002a0010;
     50 _defineConstant("WIN_VK_SHIFT", WIN_VK_SHIFT);
     51 const WIN_VK_CONTROL = 0x001d0011;
     52 _defineConstant("WIN_VK_CONTROL", WIN_VK_CONTROL);
     53 const WIN_VK_MENU = 0x00380012;
     54 _defineConstant("WIN_VK_MENU", WIN_VK_MENU);
     55 const WIN_VK_PAUSE = 0x00450013;
     56 _defineConstant("WIN_VK_PAUSE", WIN_VK_PAUSE);
     57 const WIN_VK_CAPITAL = 0x003a0014;
     58 _defineConstant("WIN_VK_CAPITAL", WIN_VK_CAPITAL);
     59 const WIN_VK_KANA = 0x00000015;
     60 _defineConstant("WIN_VK_KANA", WIN_VK_KANA);
     61 const WIN_VK_HANGUEL = 0x00000015;
     62 _defineConstant("WIN_VK_HANGUEL", WIN_VK_HANGUEL);
     63 const WIN_VK_HANGUL = 0x00000015;
     64 _defineConstant("WIN_VK_HANGUL", WIN_VK_HANGUL);
     65 const WIN_VK_JUNJA = 0x00000017;
     66 _defineConstant("WIN_VK_JUNJA", WIN_VK_JUNJA);
     67 const WIN_VK_FINAL = 0x00000018;
     68 _defineConstant("WIN_VK_FINAL", WIN_VK_FINAL);
     69 const WIN_VK_HANJA = 0x00000019;
     70 _defineConstant("WIN_VK_HANJA", WIN_VK_HANJA);
     71 const WIN_VK_KANJI = 0x00000019;
     72 _defineConstant("WIN_VK_KANJI", WIN_VK_KANJI);
     73 const WIN_VK_ESCAPE = 0x0001001b;
     74 _defineConstant("WIN_VK_ESCAPE", WIN_VK_ESCAPE);
     75 const WIN_VK_CONVERT = 0x0000001c;
     76 _defineConstant("WIN_VK_CONVERT", WIN_VK_CONVERT);
     77 const WIN_VK_NONCONVERT = 0x0000001d;
     78 _defineConstant("WIN_VK_NONCONVERT", WIN_VK_NONCONVERT);
     79 const WIN_VK_ACCEPT = 0x0000001e;
     80 _defineConstant("WIN_VK_ACCEPT", WIN_VK_ACCEPT);
     81 const WIN_VK_MODECHANGE = 0x0000001f;
     82 _defineConstant("WIN_VK_MODECHANGE", WIN_VK_MODECHANGE);
     83 const WIN_VK_SPACE = 0x00390020;
     84 _defineConstant("WIN_VK_SPACE", WIN_VK_SPACE);
     85 const WIN_VK_PRIOR = 0xe0490021;
     86 _defineConstant("WIN_VK_PRIOR", WIN_VK_PRIOR);
     87 const WIN_VK_NEXT = 0xe0510022;
     88 _defineConstant("WIN_VK_NEXT", WIN_VK_NEXT);
     89 const WIN_VK_END = 0xe04f0023;
     90 _defineConstant("WIN_VK_END", WIN_VK_END);
     91 const WIN_VK_HOME = 0xe0470024;
     92 _defineConstant("WIN_VK_HOME", WIN_VK_HOME);
     93 const WIN_VK_LEFT = 0xe04b0025;
     94 _defineConstant("WIN_VK_LEFT", WIN_VK_LEFT);
     95 const WIN_VK_UP = 0xe0480026;
     96 _defineConstant("WIN_VK_UP", WIN_VK_UP);
     97 const WIN_VK_RIGHT = 0xe04d0027;
     98 _defineConstant("WIN_VK_RIGHT", WIN_VK_RIGHT);
     99 const WIN_VK_DOWN = 0xe0500028;
    100 _defineConstant("WIN_VK_DOWN", WIN_VK_DOWN);
    101 const WIN_VK_SELECT = 0x00000029;
    102 _defineConstant("WIN_VK_SELECT", WIN_VK_SELECT);
    103 const WIN_VK_PRINT = 0x0000002a;
    104 _defineConstant("WIN_VK_PRINT", WIN_VK_PRINT);
    105 const WIN_VK_EXECUTE = 0x0000002b;
    106 _defineConstant("WIN_VK_EXECUTE", WIN_VK_EXECUTE);
    107 const WIN_VK_SNAPSHOT = 0xe037002c;
    108 _defineConstant("WIN_VK_SNAPSHOT", WIN_VK_SNAPSHOT);
    109 const WIN_VK_INSERT = 0xe052002d;
    110 _defineConstant("WIN_VK_INSERT", WIN_VK_INSERT);
    111 const WIN_VK_DELETE = 0xe053002e;
    112 _defineConstant("WIN_VK_DELETE", WIN_VK_DELETE);
    113 const WIN_VK_HELP = 0x0000002f;
    114 _defineConstant("WIN_VK_HELP", WIN_VK_HELP);
    115 const WIN_VK_0 = 0x00000030;
    116 _defineConstant("WIN_VK_0", WIN_VK_0);
    117 const WIN_VK_1 = 0x00000031;
    118 _defineConstant("WIN_VK_1", WIN_VK_1);
    119 const WIN_VK_2 = 0x00000032;
    120 _defineConstant("WIN_VK_2", WIN_VK_2);
    121 const WIN_VK_3 = 0x00000033;
    122 _defineConstant("WIN_VK_3", WIN_VK_3);
    123 const WIN_VK_4 = 0x00000034;
    124 _defineConstant("WIN_VK_4", WIN_VK_4);
    125 const WIN_VK_5 = 0x00000035;
    126 _defineConstant("WIN_VK_5", WIN_VK_5);
    127 const WIN_VK_6 = 0x00000036;
    128 _defineConstant("WIN_VK_6", WIN_VK_6);
    129 const WIN_VK_7 = 0x00000037;
    130 _defineConstant("WIN_VK_7", WIN_VK_7);
    131 const WIN_VK_8 = 0x00000038;
    132 _defineConstant("WIN_VK_8", WIN_VK_8);
    133 const WIN_VK_9 = 0x00000039;
    134 _defineConstant("WIN_VK_9", WIN_VK_9);
    135 const WIN_VK_A = 0x00000041;
    136 _defineConstant("WIN_VK_A", WIN_VK_A);
    137 const WIN_VK_B = 0x00000042;
    138 _defineConstant("WIN_VK_B", WIN_VK_B);
    139 const WIN_VK_C = 0x00000043;
    140 _defineConstant("WIN_VK_C", WIN_VK_C);
    141 const WIN_VK_D = 0x00000044;
    142 _defineConstant("WIN_VK_D", WIN_VK_D);
    143 const WIN_VK_E = 0x00000045;
    144 _defineConstant("WIN_VK_E", WIN_VK_E);
    145 const WIN_VK_F = 0x00000046;
    146 _defineConstant("WIN_VK_F", WIN_VK_F);
    147 const WIN_VK_G = 0x00000047;
    148 _defineConstant("WIN_VK_G", WIN_VK_G);
    149 const WIN_VK_H = 0x00000048;
    150 _defineConstant("WIN_VK_H", WIN_VK_H);
    151 const WIN_VK_I = 0x00000049;
    152 _defineConstant("WIN_VK_I", WIN_VK_I);
    153 const WIN_VK_J = 0x0000004a;
    154 _defineConstant("WIN_VK_J", WIN_VK_J);
    155 const WIN_VK_K = 0x0000004b;
    156 _defineConstant("WIN_VK_K", WIN_VK_K);
    157 const WIN_VK_L = 0x0000004c;
    158 _defineConstant("WIN_VK_L", WIN_VK_L);
    159 const WIN_VK_M = 0x0000004d;
    160 _defineConstant("WIN_VK_M", WIN_VK_M);
    161 const WIN_VK_N = 0x0000004e;
    162 _defineConstant("WIN_VK_N", WIN_VK_N);
    163 const WIN_VK_O = 0x0000004f;
    164 _defineConstant("WIN_VK_O", WIN_VK_O);
    165 const WIN_VK_P = 0x00000050;
    166 _defineConstant("WIN_VK_P", WIN_VK_P);
    167 const WIN_VK_Q = 0x00000051;
    168 _defineConstant("WIN_VK_Q", WIN_VK_Q);
    169 const WIN_VK_R = 0x00000052;
    170 _defineConstant("WIN_VK_R", WIN_VK_R);
    171 const WIN_VK_S = 0x00000053;
    172 _defineConstant("WIN_VK_S", WIN_VK_S);
    173 const WIN_VK_T = 0x00000054;
    174 _defineConstant("WIN_VK_T", WIN_VK_T);
    175 const WIN_VK_U = 0x00000055;
    176 _defineConstant("WIN_VK_U", WIN_VK_U);
    177 const WIN_VK_V = 0x00000056;
    178 _defineConstant("WIN_VK_V", WIN_VK_V);
    179 const WIN_VK_W = 0x00000057;
    180 _defineConstant("WIN_VK_W", WIN_VK_W);
    181 const WIN_VK_X = 0x00000058;
    182 _defineConstant("WIN_VK_X", WIN_VK_X);
    183 const WIN_VK_Y = 0x00000059;
    184 _defineConstant("WIN_VK_Y", WIN_VK_Y);
    185 const WIN_VK_Z = 0x0000005a;
    186 _defineConstant("WIN_VK_Z", WIN_VK_Z);
    187 const WIN_VK_LWIN = 0xe05b005b;
    188 _defineConstant("WIN_VK_LWIN", WIN_VK_LWIN);
    189 const WIN_VK_RWIN = 0xe05c005c;
    190 _defineConstant("WIN_VK_RWIN", WIN_VK_RWIN);
    191 const WIN_VK_APPS = 0xe05d005d;
    192 _defineConstant("WIN_VK_APPS", WIN_VK_APPS);
    193 const WIN_VK_SLEEP = 0x0000005f;
    194 _defineConstant("WIN_VK_SLEEP", WIN_VK_SLEEP);
    195 const WIN_VK_NUMPAD0 = 0x00520060;
    196 _defineConstant("WIN_VK_NUMPAD0", WIN_VK_NUMPAD0);
    197 const WIN_VK_NUMPAD1 = 0x004f0061;
    198 _defineConstant("WIN_VK_NUMPAD1", WIN_VK_NUMPAD1);
    199 const WIN_VK_NUMPAD2 = 0x00500062;
    200 _defineConstant("WIN_VK_NUMPAD2", WIN_VK_NUMPAD2);
    201 const WIN_VK_NUMPAD3 = 0x00510063;
    202 _defineConstant("WIN_VK_NUMPAD3", WIN_VK_NUMPAD3);
    203 const WIN_VK_NUMPAD4 = 0x004b0064;
    204 _defineConstant("WIN_VK_NUMPAD4", WIN_VK_NUMPAD4);
    205 const WIN_VK_NUMPAD5 = 0x004c0065;
    206 _defineConstant("WIN_VK_NUMPAD5", WIN_VK_NUMPAD5);
    207 const WIN_VK_NUMPAD6 = 0x004d0066;
    208 _defineConstant("WIN_VK_NUMPAD6", WIN_VK_NUMPAD6);
    209 const WIN_VK_NUMPAD7 = 0x00470067;
    210 _defineConstant("WIN_VK_NUMPAD7", WIN_VK_NUMPAD7);
    211 const WIN_VK_NUMPAD8 = 0x00480068;
    212 _defineConstant("WIN_VK_NUMPAD8", WIN_VK_NUMPAD8);
    213 const WIN_VK_NUMPAD9 = 0x00490069;
    214 _defineConstant("WIN_VK_NUMPAD9", WIN_VK_NUMPAD9);
    215 const WIN_VK_MULTIPLY = 0x0037006a;
    216 _defineConstant("WIN_VK_MULTIPLY", WIN_VK_MULTIPLY);
    217 const WIN_VK_ADD = 0x004e006b;
    218 _defineConstant("WIN_VK_ADD", WIN_VK_ADD);
    219 const WIN_VK_SEPARATOR = 0x0000006c;
    220 _defineConstant("WIN_VK_SEPARATOR", WIN_VK_SEPARATOR);
    221 const WIN_VK_OEM_NEC_SEPARATE = 0x0000006c;
    222 _defineConstant("WIN_VK_OEM_NEC_SEPARATE", WIN_VK_OEM_NEC_SEPARATE);
    223 const WIN_VK_SUBTRACT = 0x004a006d;
    224 _defineConstant("WIN_VK_SUBTRACT", WIN_VK_SUBTRACT);
    225 const WIN_VK_DECIMAL = 0x0053006e;
    226 _defineConstant("WIN_VK_DECIMAL", WIN_VK_DECIMAL);
    227 const WIN_VK_DIVIDE = 0xe035006f;
    228 _defineConstant("WIN_VK_DIVIDE", WIN_VK_DIVIDE);
    229 const WIN_VK_F1 = 0x003b0070;
    230 _defineConstant("WIN_VK_F1", WIN_VK_F1);
    231 const WIN_VK_F2 = 0x003c0071;
    232 _defineConstant("WIN_VK_F2", WIN_VK_F2);
    233 const WIN_VK_F3 = 0x003d0072;
    234 _defineConstant("WIN_VK_F3", WIN_VK_F3);
    235 const WIN_VK_F4 = 0x003e0073;
    236 _defineConstant("WIN_VK_F4", WIN_VK_F4);
    237 const WIN_VK_F5 = 0x003f0074;
    238 _defineConstant("WIN_VK_F5", WIN_VK_F5);
    239 const WIN_VK_F6 = 0x00400075;
    240 _defineConstant("WIN_VK_F6", WIN_VK_F6);
    241 const WIN_VK_F7 = 0x00410076;
    242 _defineConstant("WIN_VK_F7", WIN_VK_F7);
    243 const WIN_VK_F8 = 0x00420077;
    244 _defineConstant("WIN_VK_F8", WIN_VK_F8);
    245 const WIN_VK_F9 = 0x00430078;
    246 _defineConstant("WIN_VK_F9", WIN_VK_F9);
    247 const WIN_VK_F10 = 0x00440079;
    248 _defineConstant("WIN_VK_F10", WIN_VK_F10);
    249 const WIN_VK_F11 = 0x0057007a;
    250 _defineConstant("WIN_VK_F11", WIN_VK_F11);
    251 const WIN_VK_F12 = 0x0058007b;
    252 _defineConstant("WIN_VK_F12", WIN_VK_F12);
    253 const WIN_VK_F13 = 0x0064007c;
    254 _defineConstant("WIN_VK_F13", WIN_VK_F13);
    255 const WIN_VK_F14 = 0x0065007d;
    256 _defineConstant("WIN_VK_F14", WIN_VK_F14);
    257 const WIN_VK_F15 = 0x0066007e;
    258 _defineConstant("WIN_VK_F15", WIN_VK_F15);
    259 const WIN_VK_F16 = 0x0067007f;
    260 _defineConstant("WIN_VK_F16", WIN_VK_F16);
    261 const WIN_VK_F17 = 0x00680080;
    262 _defineConstant("WIN_VK_F17", WIN_VK_F17);
    263 const WIN_VK_F18 = 0x00690081;
    264 _defineConstant("WIN_VK_F18", WIN_VK_F18);
    265 const WIN_VK_F19 = 0x006a0082;
    266 _defineConstant("WIN_VK_F19", WIN_VK_F19);
    267 const WIN_VK_F20 = 0x006b0083;
    268 _defineConstant("WIN_VK_F20", WIN_VK_F20);
    269 const WIN_VK_F21 = 0x006c0084;
    270 _defineConstant("WIN_VK_F21", WIN_VK_F21);
    271 const WIN_VK_F22 = 0x006d0085;
    272 _defineConstant("WIN_VK_F22", WIN_VK_F22);
    273 const WIN_VK_F23 = 0x006e0086;
    274 _defineConstant("WIN_VK_F23", WIN_VK_F23);
    275 const WIN_VK_F24 = 0x00760087;
    276 _defineConstant("WIN_VK_F24", WIN_VK_F24);
    277 const WIN_VK_NUMLOCK = 0xe0450090;
    278 _defineConstant("WIN_VK_NUMLOCK", WIN_VK_NUMLOCK);
    279 const WIN_VK_SCROLL = 0x00460091;
    280 _defineConstant("WIN_VK_SCROLL", WIN_VK_SCROLL);
    281 const WIN_VK_OEM_FJ_JISHO = 0x00000092;
    282 _defineConstant("WIN_VK_OEM_FJ_JISHO", WIN_VK_OEM_FJ_JISHO);
    283 const WIN_VK_OEM_NEC_EQUAL = 0x00000092;
    284 _defineConstant("WIN_VK_OEM_NEC_EQUAL", WIN_VK_OEM_NEC_EQUAL);
    285 const WIN_VK_OEM_FJ_MASSHOU = 0x00000093;
    286 _defineConstant("WIN_VK_OEM_FJ_MASSHOU", WIN_VK_OEM_FJ_MASSHOU);
    287 const WIN_VK_OEM_FJ_TOUROKU = 0x00000094;
    288 _defineConstant("WIN_VK_OEM_FJ_TOUROKU", WIN_VK_OEM_FJ_TOUROKU);
    289 const WIN_VK_OEM_FJ_LOYA = 0x00000095;
    290 _defineConstant("WIN_VK_OEM_FJ_LOYA", WIN_VK_OEM_FJ_LOYA);
    291 const WIN_VK_OEM_FJ_ROYA = 0x00000096;
    292 _defineConstant("WIN_VK_OEM_FJ_ROYA", WIN_VK_OEM_FJ_ROYA);
    293 const WIN_VK_LSHIFT = 0x002a00a0;
    294 _defineConstant("WIN_VK_LSHIFT", WIN_VK_LSHIFT);
    295 const WIN_VK_RSHIFT = 0x003600a1;
    296 _defineConstant("WIN_VK_RSHIFT", WIN_VK_RSHIFT);
    297 const WIN_VK_LCONTROL = 0x001d00a2;
    298 _defineConstant("WIN_VK_LCONTROL", WIN_VK_LCONTROL);
    299 const WIN_VK_RCONTROL = 0xe01d00a3;
    300 _defineConstant("WIN_VK_RCONTROL", WIN_VK_RCONTROL);
    301 const WIN_VK_LMENU = 0x003800a4;
    302 _defineConstant("WIN_VK_LMENU", WIN_VK_LMENU);
    303 const WIN_VK_RMENU = 0xe03800a5;
    304 _defineConstant("WIN_VK_RMENU", WIN_VK_RMENU);
    305 const WIN_VK_BROWSER_BACK = 0xe06a00a6;
    306 _defineConstant("WIN_VK_BROWSER_BACK", WIN_VK_BROWSER_BACK);
    307 const WIN_VK_BROWSER_FORWARD = 0xe06900a7;
    308 _defineConstant("WIN_VK_BROWSER_FORWARD", WIN_VK_BROWSER_FORWARD);
    309 const WIN_VK_BROWSER_REFRESH = 0xe06700a8;
    310 _defineConstant("WIN_VK_BROWSER_REFRESH", WIN_VK_BROWSER_REFRESH);
    311 const WIN_VK_BROWSER_STOP = 0xe06800a9;
    312 _defineConstant("WIN_VK_BROWSER_STOP", WIN_VK_BROWSER_STOP);
    313 const WIN_VK_BROWSER_SEARCH = 0x000000aa;
    314 _defineConstant("WIN_VK_BROWSER_SEARCH", WIN_VK_BROWSER_SEARCH);
    315 const WIN_VK_BROWSER_FAVORITES = 0xe06600ab;
    316 _defineConstant("WIN_VK_BROWSER_FAVORITES", WIN_VK_BROWSER_FAVORITES);
    317 const WIN_VK_BROWSER_HOME = 0xe03200ac;
    318 _defineConstant("WIN_VK_BROWSER_HOME", WIN_VK_BROWSER_HOME);
    319 const WIN_VK_VOLUME_MUTE = 0xe02000ad;
    320 _defineConstant("WIN_VK_VOLUME_MUTE", WIN_VK_VOLUME_MUTE);
    321 const WIN_VK_VOLUME_DOWN = 0xe02e00ae;
    322 _defineConstant("WIN_VK_VOLUME_DOWN", WIN_VK_VOLUME_DOWN);
    323 const WIN_VK_VOLUME_UP = 0xe03000af;
    324 _defineConstant("WIN_VK_VOLUME_UP", WIN_VK_VOLUME_UP);
    325 const WIN_VK_MEDIA_NEXT_TRACK = 0xe01900b0;
    326 _defineConstant("WIN_VK_MEDIA_NEXT_TRACK", WIN_VK_MEDIA_NEXT_TRACK);
    327 const WIN_VK_OEM_FJ_000 = 0x000000b0;
    328 _defineConstant("WIN_VK_OEM_FJ_000", WIN_VK_OEM_FJ_000);
    329 const WIN_VK_MEDIA_PREV_TRACK = 0xe01000b1;
    330 _defineConstant("WIN_VK_MEDIA_PREV_TRACK", WIN_VK_MEDIA_PREV_TRACK);
    331 const WIN_VK_OEM_FJ_EUQAL = 0x000000b1;
    332 _defineConstant("WIN_VK_OEM_FJ_EUQAL", WIN_VK_OEM_FJ_EUQAL);
    333 const WIN_VK_MEDIA_STOP = 0xe02400b2;
    334 _defineConstant("WIN_VK_MEDIA_STOP", WIN_VK_MEDIA_STOP);
    335 const WIN_VK_MEDIA_PLAY_PAUSE = 0xe02200b3;
    336 _defineConstant("WIN_VK_MEDIA_PLAY_PAUSE", WIN_VK_MEDIA_PLAY_PAUSE);
    337 const WIN_VK_OEM_FJ_00 = 0x000000b3;
    338 _defineConstant("WIN_VK_OEM_FJ_00", WIN_VK_OEM_FJ_00);
    339 const WIN_VK_LAUNCH_MAIL = 0xe06c00b4;
    340 _defineConstant("WIN_VK_LAUNCH_MAIL", WIN_VK_LAUNCH_MAIL);
    341 const WIN_VK_LAUNCH_MEDIA_SELECT = 0xe06d00b5;
    342 _defineConstant("WIN_VK_LAUNCH_MEDIA_SELECT", WIN_VK_LAUNCH_MEDIA_SELECT);
    343 const WIN_VK_LAUNCH_APP1 = 0xe06b00b6;
    344 _defineConstant("WIN_VK_LAUNCH_APP1", WIN_VK_LAUNCH_APP1);
    345 const WIN_VK_LAUNCH_APP2 = 0xe02100b7;
    346 _defineConstant("WIN_VK_LAUNCH_APP2", WIN_VK_LAUNCH_APP2);
    347 const WIN_VK_OEM_1 = 0x000000ba;
    348 _defineConstant("WIN_VK_OEM_1", WIN_VK_OEM_1);
    349 const WIN_VK_OEM_PLUS = 0x000000bb;
    350 _defineConstant("WIN_VK_OEM_PLUS", WIN_VK_OEM_PLUS);
    351 const WIN_VK_OEM_COMMA = 0x000000bc;
    352 _defineConstant("WIN_VK_OEM_COMMA", WIN_VK_OEM_COMMA);
    353 const WIN_VK_OEM_MINUS = 0x000000bd;
    354 _defineConstant("WIN_VK_OEM_MINUS", WIN_VK_OEM_MINUS);
    355 const WIN_VK_OEM_PERIOD = 0x000000be;
    356 _defineConstant("WIN_VK_OEM_PERIOD", WIN_VK_OEM_PERIOD);
    357 const WIN_VK_OEM_2 = 0x000000bf;
    358 _defineConstant("WIN_VK_OEM_2", WIN_VK_OEM_2);
    359 const WIN_VK_OEM_3 = 0x000000c0;
    360 _defineConstant("WIN_VK_OEM_3", WIN_VK_OEM_3);
    361 const WIN_VK_ABNT_C1 = 0x005600c1;
    362 _defineConstant("WIN_VK_ABNT_C1", WIN_VK_ABNT_C1);
    363 const WIN_VK_ABNT_C2 = 0x000000c2;
    364 _defineConstant("WIN_VK_ABNT_C2", WIN_VK_ABNT_C2);
    365 const WIN_VK_OEM_4 = 0x000000db;
    366 _defineConstant("WIN_VK_OEM_4", WIN_VK_OEM_4);
    367 const WIN_VK_OEM_5 = 0x000000dc;
    368 _defineConstant("WIN_VK_OEM_5", WIN_VK_OEM_5);
    369 const WIN_VK_OEM_6 = 0x000000dd;
    370 _defineConstant("WIN_VK_OEM_6", WIN_VK_OEM_6);
    371 const WIN_VK_OEM_7 = 0x000000de;
    372 _defineConstant("WIN_VK_OEM_7", WIN_VK_OEM_7);
    373 const WIN_VK_OEM_8 = 0x000000df;
    374 _defineConstant("WIN_VK_OEM_8", WIN_VK_OEM_8);
    375 const WIN_VK_OEM_NEC_DP1 = 0x000000e0;
    376 _defineConstant("WIN_VK_OEM_NEC_DP1", WIN_VK_OEM_NEC_DP1);
    377 const WIN_VK_OEM_AX = 0x000000e1;
    378 _defineConstant("WIN_VK_OEM_AX", WIN_VK_OEM_AX);
    379 const WIN_VK_OEM_NEC_DP2 = 0x000000e1;
    380 _defineConstant("WIN_VK_OEM_NEC_DP2", WIN_VK_OEM_NEC_DP2);
    381 const WIN_VK_OEM_102 = 0x000000e2;
    382 _defineConstant("WIN_VK_OEM_102", WIN_VK_OEM_102);
    383 const WIN_VK_OEM_NEC_DP3 = 0x000000e2;
    384 _defineConstant("WIN_VK_OEM_NEC_DP3", WIN_VK_OEM_NEC_DP3);
    385 const WIN_VK_ICO_HELP = 0x000000e3;
    386 _defineConstant("WIN_VK_ICO_HELP", WIN_VK_ICO_HELP);
    387 const WIN_VK_OEM_NEC_DP4 = 0x000000e3;
    388 _defineConstant("WIN_VK_OEM_NEC_DP4", WIN_VK_OEM_NEC_DP4);
    389 const WIN_VK_ICO_00 = 0x000000e4;
    390 _defineConstant("WIN_VK_ICO_00", WIN_VK_ICO_00);
    391 const WIN_VK_PROCESSKEY = 0x000000e5;
    392 _defineConstant("WIN_VK_PROCESSKEY", WIN_VK_PROCESSKEY);
    393 const WIN_VK_ICO_CLEAR = 0x000000e6;
    394 _defineConstant("WIN_VK_ICO_CLEAR", WIN_VK_ICO_CLEAR);
    395 const WIN_VK_PACKET = 0x000000e7;
    396 _defineConstant("WIN_VK_PACKET", WIN_VK_PACKET);
    397 const WIN_VK_ERICSSON_BASE = 0x000000e8;
    398 _defineConstant("WIN_VK_ERICSSON_BASE", WIN_VK_ERICSSON_BASE);
    399 const WIN_VK_OEM_RESET = 0x000000e9;
    400 _defineConstant("WIN_VK_OEM_RESET", WIN_VK_OEM_RESET);
    401 const WIN_VK_OEM_JUMP = 0x000000ea;
    402 _defineConstant("WIN_VK_OEM_JUMP", WIN_VK_OEM_JUMP);
    403 const WIN_VK_OEM_PA1 = 0x000000eb;
    404 _defineConstant("WIN_VK_OEM_PA1", WIN_VK_OEM_PA1);
    405 const WIN_VK_OEM_PA2 = 0x000000ec;
    406 _defineConstant("WIN_VK_OEM_PA2", WIN_VK_OEM_PA2);
    407 const WIN_VK_OEM_PA3 = 0x000000ed;
    408 _defineConstant("WIN_VK_OEM_PA3", WIN_VK_OEM_PA3);
    409 const WIN_VK_OEM_WSCTRL = 0x000000ee;
    410 _defineConstant("WIN_VK_OEM_WSCTRL", WIN_VK_OEM_WSCTRL);
    411 const WIN_VK_OEM_CUSEL = 0x000000ef;
    412 _defineConstant("WIN_VK_OEM_CUSEL", WIN_VK_OEM_CUSEL);
    413 const WIN_VK_OEM_ATTN = 0x000000f0;
    414 _defineConstant("WIN_VK_OEM_ATTN", WIN_VK_OEM_ATTN);
    415 const WIN_VK_OEM_FINISH = 0x000000f1;
    416 _defineConstant("WIN_VK_OEM_FINISH", WIN_VK_OEM_FINISH);
    417 const WIN_VK_OEM_COPY = 0x000000f2;
    418 _defineConstant("WIN_VK_OEM_COPY", WIN_VK_OEM_COPY);
    419 const WIN_VK_OEM_AUTO = 0x000000f3;
    420 _defineConstant("WIN_VK_OEM_AUTO", WIN_VK_OEM_AUTO);
    421 const WIN_VK_OEM_ENLW = 0x000000f4;
    422 _defineConstant("WIN_VK_OEM_ENLW", WIN_VK_OEM_ENLW);
    423 const WIN_VK_OEM_BACKTAB = 0x000000f5;
    424 _defineConstant("WIN_VK_OEM_BACKTAB", WIN_VK_OEM_BACKTAB);
    425 const WIN_VK_ATTN = 0x000000f6;
    426 _defineConstant("WIN_VK_ATTN", WIN_VK_ATTN);
    427 const WIN_VK_CRSEL = 0x000000f7;
    428 _defineConstant("WIN_VK_CRSEL", WIN_VK_CRSEL);
    429 const WIN_VK_EXSEL = 0x000000f8;
    430 _defineConstant("WIN_VK_EXSEL", WIN_VK_EXSEL);
    431 const WIN_VK_EREOF = 0x000000f9;
    432 _defineConstant("WIN_VK_EREOF", WIN_VK_EREOF);
    433 const WIN_VK_PLAY = 0x000000fa;
    434 _defineConstant("WIN_VK_PLAY", WIN_VK_PLAY);
    435 const WIN_VK_ZOOM = 0x000000fb;
    436 _defineConstant("WIN_VK_ZOOM", WIN_VK_ZOOM);
    437 const WIN_VK_NONAME = 0x000000fc;
    438 _defineConstant("WIN_VK_NONAME", WIN_VK_NONAME);
    439 const WIN_VK_PA1 = 0x000000fd;
    440 _defineConstant("WIN_VK_PA1", WIN_VK_PA1);
    441 const WIN_VK_OEM_CLEAR = 0x000000fe;
    442 _defineConstant("WIN_VK_OEM_CLEAR", WIN_VK_OEM_CLEAR);
    443 
    444 const WIN_VK_NUMPAD_RETURN = 0xe01c000d;
    445 _defineConstant("WIN_VK_NUMPAD_RETURN", WIN_VK_NUMPAD_RETURN);
    446 const WIN_VK_NUMPAD_PRIOR = 0x00490021;
    447 _defineConstant("WIN_VK_NUMPAD_PRIOR", WIN_VK_NUMPAD_PRIOR);
    448 const WIN_VK_NUMPAD_NEXT = 0x00510022;
    449 _defineConstant("WIN_VK_NUMPAD_NEXT", WIN_VK_NUMPAD_NEXT);
    450 const WIN_VK_NUMPAD_END = 0x004f0023;
    451 _defineConstant("WIN_VK_NUMPAD_END", WIN_VK_NUMPAD_END);
    452 const WIN_VK_NUMPAD_HOME = 0x00470024;
    453 _defineConstant("WIN_VK_NUMPAD_HOME", WIN_VK_NUMPAD_HOME);
    454 const WIN_VK_NUMPAD_LEFT = 0x004b0025;
    455 _defineConstant("WIN_VK_NUMPAD_LEFT", WIN_VK_NUMPAD_LEFT);
    456 const WIN_VK_NUMPAD_UP = 0x00480026;
    457 _defineConstant("WIN_VK_NUMPAD_UP", WIN_VK_NUMPAD_UP);
    458 const WIN_VK_NUMPAD_RIGHT = 0x004d0027;
    459 _defineConstant("WIN_VK_NUMPAD_RIGHT", WIN_VK_NUMPAD_RIGHT);
    460 const WIN_VK_NUMPAD_DOWN = 0x00500028;
    461 _defineConstant("WIN_VK_NUMPAD_DOWN", WIN_VK_NUMPAD_DOWN);
    462 const WIN_VK_NUMPAD_INSERT = 0x0052002d;
    463 _defineConstant("WIN_VK_NUMPAD_INSERT", WIN_VK_NUMPAD_INSERT);
    464 const WIN_VK_NUMPAD_DELETE = 0x0053002e;
    465 _defineConstant("WIN_VK_NUMPAD_DELETE", WIN_VK_NUMPAD_DELETE);
    466 
    467 // Mac
    468 
    469 const MAC_VK_ANSI_A = 0x00;
    470 _defineConstant("MAC_VK_ANSI_A", MAC_VK_ANSI_A);
    471 const MAC_VK_ANSI_S = 0x01;
    472 _defineConstant("MAC_VK_ANSI_S", MAC_VK_ANSI_S);
    473 const MAC_VK_ANSI_D = 0x02;
    474 _defineConstant("MAC_VK_ANSI_D", MAC_VK_ANSI_D);
    475 const MAC_VK_ANSI_F = 0x03;
    476 _defineConstant("MAC_VK_ANSI_F", MAC_VK_ANSI_F);
    477 const MAC_VK_ANSI_H = 0x04;
    478 _defineConstant("MAC_VK_ANSI_H", MAC_VK_ANSI_H);
    479 const MAC_VK_ANSI_G = 0x05;
    480 _defineConstant("MAC_VK_ANSI_G", MAC_VK_ANSI_G);
    481 const MAC_VK_ANSI_Z = 0x06;
    482 _defineConstant("MAC_VK_ANSI_Z", MAC_VK_ANSI_Z);
    483 const MAC_VK_ANSI_X = 0x07;
    484 _defineConstant("MAC_VK_ANSI_X", MAC_VK_ANSI_X);
    485 const MAC_VK_ANSI_C = 0x08;
    486 _defineConstant("MAC_VK_ANSI_C", MAC_VK_ANSI_C);
    487 const MAC_VK_ANSI_V = 0x09;
    488 _defineConstant("MAC_VK_ANSI_V", MAC_VK_ANSI_V);
    489 const MAC_VK_ISO_Section = 0x0a;
    490 _defineConstant("MAC_VK_ISO_Section", MAC_VK_ISO_Section);
    491 const MAC_VK_ANSI_B = 0x0b;
    492 _defineConstant("MAC_VK_ANSI_B", MAC_VK_ANSI_B);
    493 const MAC_VK_ANSI_Q = 0x0c;
    494 _defineConstant("MAC_VK_ANSI_Q", MAC_VK_ANSI_Q);
    495 const MAC_VK_ANSI_W = 0x0d;
    496 _defineConstant("MAC_VK_ANSI_W", MAC_VK_ANSI_W);
    497 const MAC_VK_ANSI_E = 0x0e;
    498 _defineConstant("MAC_VK_ANSI_E", MAC_VK_ANSI_E);
    499 const MAC_VK_ANSI_R = 0x0f;
    500 _defineConstant("MAC_VK_ANSI_R", MAC_VK_ANSI_R);
    501 const MAC_VK_ANSI_Y = 0x10;
    502 _defineConstant("MAC_VK_ANSI_Y", MAC_VK_ANSI_Y);
    503 const MAC_VK_ANSI_T = 0x11;
    504 _defineConstant("MAC_VK_ANSI_T", MAC_VK_ANSI_T);
    505 const MAC_VK_ANSI_1 = 0x12;
    506 _defineConstant("MAC_VK_ANSI_1", MAC_VK_ANSI_1);
    507 const MAC_VK_ANSI_2 = 0x13;
    508 _defineConstant("MAC_VK_ANSI_2", MAC_VK_ANSI_2);
    509 const MAC_VK_ANSI_3 = 0x14;
    510 _defineConstant("MAC_VK_ANSI_3", MAC_VK_ANSI_3);
    511 const MAC_VK_ANSI_4 = 0x15;
    512 _defineConstant("MAC_VK_ANSI_4", MAC_VK_ANSI_4);
    513 const MAC_VK_ANSI_6 = 0x16;
    514 _defineConstant("MAC_VK_ANSI_6", MAC_VK_ANSI_6);
    515 const MAC_VK_ANSI_5 = 0x17;
    516 _defineConstant("MAC_VK_ANSI_5", MAC_VK_ANSI_5);
    517 const MAC_VK_ANSI_Equal = 0x18;
    518 _defineConstant("MAC_VK_ANSI_Equal", MAC_VK_ANSI_Equal);
    519 const MAC_VK_ANSI_9 = 0x19;
    520 _defineConstant("MAC_VK_ANSI_9", MAC_VK_ANSI_9);
    521 const MAC_VK_ANSI_7 = 0x1a;
    522 _defineConstant("MAC_VK_ANSI_7", MAC_VK_ANSI_7);
    523 const MAC_VK_ANSI_Minus = 0x1b;
    524 _defineConstant("MAC_VK_ANSI_Minus", MAC_VK_ANSI_Minus);
    525 const MAC_VK_ANSI_8 = 0x1c;
    526 _defineConstant("MAC_VK_ANSI_8", MAC_VK_ANSI_8);
    527 const MAC_VK_ANSI_0 = 0x1d;
    528 _defineConstant("MAC_VK_ANSI_0", MAC_VK_ANSI_0);
    529 const MAC_VK_ANSI_RightBracket = 0x1e;
    530 _defineConstant("MAC_VK_ANSI_RightBracket", MAC_VK_ANSI_RightBracket);
    531 const MAC_VK_ANSI_O = 0x1f;
    532 _defineConstant("MAC_VK_ANSI_O", MAC_VK_ANSI_O);
    533 const MAC_VK_ANSI_U = 0x20;
    534 _defineConstant("MAC_VK_ANSI_U", MAC_VK_ANSI_U);
    535 const MAC_VK_ANSI_LeftBracket = 0x21;
    536 _defineConstant("MAC_VK_ANSI_LeftBracket", MAC_VK_ANSI_LeftBracket);
    537 const MAC_VK_ANSI_I = 0x22;
    538 _defineConstant("MAC_VK_ANSI_I", MAC_VK_ANSI_I);
    539 const MAC_VK_ANSI_P = 0x23;
    540 _defineConstant("MAC_VK_ANSI_P", MAC_VK_ANSI_P);
    541 const MAC_VK_Return = 0x24;
    542 _defineConstant("MAC_VK_Return", MAC_VK_Return);
    543 const MAC_VK_ANSI_L = 0x25;
    544 _defineConstant("MAC_VK_ANSI_L", MAC_VK_ANSI_L);
    545 const MAC_VK_ANSI_J = 0x26;
    546 _defineConstant("MAC_VK_ANSI_J", MAC_VK_ANSI_J);
    547 const MAC_VK_ANSI_Quote = 0x27;
    548 _defineConstant("MAC_VK_ANSI_Quote", MAC_VK_ANSI_Quote);
    549 const MAC_VK_ANSI_K = 0x28;
    550 _defineConstant("MAC_VK_ANSI_K", MAC_VK_ANSI_K);
    551 const MAC_VK_ANSI_Semicolon = 0x29;
    552 _defineConstant("MAC_VK_ANSI_Semicolon", MAC_VK_ANSI_Semicolon);
    553 const MAC_VK_ANSI_Backslash = 0x2a;
    554 _defineConstant("MAC_VK_ANSI_Backslash", MAC_VK_ANSI_Backslash);
    555 const MAC_VK_ANSI_Comma = 0x2b;
    556 _defineConstant("MAC_VK_ANSI_Comma", MAC_VK_ANSI_Comma);
    557 const MAC_VK_ANSI_Slash = 0x2c;
    558 _defineConstant("MAC_VK_ANSI_Slash", MAC_VK_ANSI_Slash);
    559 const MAC_VK_ANSI_N = 0x2d;
    560 _defineConstant("MAC_VK_ANSI_N", MAC_VK_ANSI_N);
    561 const MAC_VK_ANSI_M = 0x2e;
    562 _defineConstant("MAC_VK_ANSI_M", MAC_VK_ANSI_M);
    563 const MAC_VK_ANSI_Period = 0x2f;
    564 _defineConstant("MAC_VK_ANSI_Period", MAC_VK_ANSI_Period);
    565 const MAC_VK_Tab = 0x30;
    566 _defineConstant("MAC_VK_Tab", MAC_VK_Tab);
    567 const MAC_VK_Space = 0x31;
    568 _defineConstant("MAC_VK_Space", MAC_VK_Space);
    569 const MAC_VK_ANSI_Grave = 0x32;
    570 _defineConstant("MAC_VK_ANSI_Grave", MAC_VK_ANSI_Grave);
    571 const MAC_VK_Delete = 0x33;
    572 _defineConstant("MAC_VK_Delete", MAC_VK_Delete);
    573 const MAC_VK_PC_Backspace = 0x33;
    574 _defineConstant("MAC_VK_PC_Backspace", MAC_VK_PC_Backspace);
    575 const MAC_VK_Powerbook_KeypadEnter = 0x34;
    576 _defineConstant("MAC_VK_Powerbook_KeypadEnter", MAC_VK_Powerbook_KeypadEnter);
    577 const MAC_VK_Escape = 0x35;
    578 _defineConstant("MAC_VK_Escape", MAC_VK_Escape);
    579 const MAC_VK_RightCommand = 0x36;
    580 _defineConstant("MAC_VK_RightCommand", MAC_VK_RightCommand);
    581 const MAC_VK_Command = 0x37;
    582 _defineConstant("MAC_VK_Command", MAC_VK_Command);
    583 const MAC_VK_Shift = 0x38;
    584 _defineConstant("MAC_VK_Shift", MAC_VK_Shift);
    585 const MAC_VK_CapsLock = 0x39;
    586 _defineConstant("MAC_VK_CapsLock", MAC_VK_CapsLock);
    587 const MAC_VK_Option = 0x3a;
    588 _defineConstant("MAC_VK_Option", MAC_VK_Option);
    589 const MAC_VK_Control = 0x3b;
    590 _defineConstant("MAC_VK_Control", MAC_VK_Control);
    591 const MAC_VK_RightShift = 0x3c;
    592 _defineConstant("MAC_VK_RightShift", MAC_VK_RightShift);
    593 const MAC_VK_RightOption = 0x3d;
    594 _defineConstant("MAC_VK_RightOption", MAC_VK_RightOption);
    595 const MAC_VK_RightControl = 0x3e;
    596 _defineConstant("MAC_VK_RightControl", MAC_VK_RightControl);
    597 const MAC_VK_Function = 0x3f;
    598 _defineConstant("MAC_VK_Function", MAC_VK_Function);
    599 const MAC_VK_F17 = 0x40;
    600 _defineConstant("MAC_VK_F17", MAC_VK_F17);
    601 const MAC_VK_ANSI_KeypadDecimal = 0x41;
    602 _defineConstant("MAC_VK_ANSI_KeypadDecimal", MAC_VK_ANSI_KeypadDecimal);
    603 const MAC_VK_ANSI_KeypadMultiply = 0x43;
    604 _defineConstant("MAC_VK_ANSI_KeypadMultiply", MAC_VK_ANSI_KeypadMultiply);
    605 const MAC_VK_ANSI_KeypadPlus = 0x45;
    606 _defineConstant("MAC_VK_ANSI_KeypadPlus", MAC_VK_ANSI_KeypadPlus);
    607 const MAC_VK_ANSI_KeypadClear = 0x47;
    608 _defineConstant("MAC_VK_ANSI_KeypadClear", MAC_VK_ANSI_KeypadClear);
    609 const MAC_VK_VolumeUp = 0x48;
    610 _defineConstant("MAC_VK_VolumeUp", MAC_VK_VolumeUp);
    611 const MAC_VK_VolumeDown = 0x49;
    612 _defineConstant("MAC_VK_VolumeDown", MAC_VK_VolumeDown);
    613 const MAC_VK_Mute = 0x4a;
    614 _defineConstant("MAC_VK_Mute", MAC_VK_Mute);
    615 const MAC_VK_ANSI_KeypadDivide = 0x4b;
    616 _defineConstant("MAC_VK_ANSI_KeypadDivide", MAC_VK_ANSI_KeypadDivide);
    617 const MAC_VK_ANSI_KeypadEnter = 0x4c;
    618 _defineConstant("MAC_VK_ANSI_KeypadEnter", MAC_VK_ANSI_KeypadEnter);
    619 const MAC_VK_ANSI_KeypadMinus = 0x4e;
    620 _defineConstant("MAC_VK_ANSI_KeypadMinus", MAC_VK_ANSI_KeypadMinus);
    621 const MAC_VK_F18 = 0x4f;
    622 _defineConstant("MAC_VK_F18", MAC_VK_F18);
    623 const MAC_VK_F19 = 0x50;
    624 _defineConstant("MAC_VK_F19", MAC_VK_F19);
    625 const MAC_VK_ANSI_KeypadEquals = 0x51;
    626 _defineConstant("MAC_VK_ANSI_KeypadEquals", MAC_VK_ANSI_KeypadEquals);
    627 const MAC_VK_ANSI_Keypad0 = 0x52;
    628 _defineConstant("MAC_VK_ANSI_Keypad0", MAC_VK_ANSI_Keypad0);
    629 const MAC_VK_ANSI_Keypad1 = 0x53;
    630 _defineConstant("MAC_VK_ANSI_Keypad1", MAC_VK_ANSI_Keypad1);
    631 const MAC_VK_ANSI_Keypad2 = 0x54;
    632 _defineConstant("MAC_VK_ANSI_Keypad2", MAC_VK_ANSI_Keypad2);
    633 const MAC_VK_ANSI_Keypad3 = 0x55;
    634 _defineConstant("MAC_VK_ANSI_Keypad3", MAC_VK_ANSI_Keypad3);
    635 const MAC_VK_ANSI_Keypad4 = 0x56;
    636 _defineConstant("MAC_VK_ANSI_Keypad4", MAC_VK_ANSI_Keypad4);
    637 const MAC_VK_ANSI_Keypad5 = 0x57;
    638 _defineConstant("MAC_VK_ANSI_Keypad5", MAC_VK_ANSI_Keypad5);
    639 const MAC_VK_ANSI_Keypad6 = 0x58;
    640 _defineConstant("MAC_VK_ANSI_Keypad6", MAC_VK_ANSI_Keypad6);
    641 const MAC_VK_ANSI_Keypad7 = 0x59;
    642 _defineConstant("MAC_VK_ANSI_Keypad7", MAC_VK_ANSI_Keypad7);
    643 const MAC_VK_F20 = 0x5a;
    644 _defineConstant("MAC_VK_F20", MAC_VK_F20);
    645 const MAC_VK_ANSI_Keypad8 = 0x5b;
    646 _defineConstant("MAC_VK_ANSI_Keypad8", MAC_VK_ANSI_Keypad8);
    647 const MAC_VK_ANSI_Keypad9 = 0x5c;
    648 _defineConstant("MAC_VK_ANSI_Keypad9", MAC_VK_ANSI_Keypad9);
    649 const MAC_VK_JIS_Yen = 0x5d;
    650 _defineConstant("MAC_VK_JIS_Yen", MAC_VK_JIS_Yen);
    651 const MAC_VK_JIS_Underscore = 0x5e;
    652 _defineConstant("MAC_VK_JIS_Underscore", MAC_VK_JIS_Underscore);
    653 const MAC_VK_JIS_KeypadComma = 0x5f;
    654 _defineConstant("MAC_VK_JIS_KeypadComma", MAC_VK_JIS_KeypadComma);
    655 const MAC_VK_F5 = 0x60;
    656 _defineConstant("MAC_VK_F5", MAC_VK_F5);
    657 const MAC_VK_F6 = 0x61;
    658 _defineConstant("MAC_VK_F6", MAC_VK_F6);
    659 const MAC_VK_F7 = 0x62;
    660 _defineConstant("MAC_VK_F7", MAC_VK_F7);
    661 const MAC_VK_F3 = 0x63;
    662 _defineConstant("MAC_VK_F3", MAC_VK_F3);
    663 const MAC_VK_F8 = 0x64;
    664 _defineConstant("MAC_VK_F8", MAC_VK_F8);
    665 const MAC_VK_F9 = 0x65;
    666 _defineConstant("MAC_VK_F9", MAC_VK_F9);
    667 const MAC_VK_JIS_Eisu = 0x66;
    668 _defineConstant("MAC_VK_JIS_Eisu", MAC_VK_JIS_Eisu);
    669 const MAC_VK_F11 = 0x67;
    670 _defineConstant("MAC_VK_F11", MAC_VK_F11);
    671 const MAC_VK_JIS_Kana = 0x68;
    672 _defineConstant("MAC_VK_JIS_Kana", MAC_VK_JIS_Kana);
    673 const MAC_VK_F13 = 0x69;
    674 _defineConstant("MAC_VK_F13", MAC_VK_F13);
    675 const MAC_VK_PC_PrintScreen = 0x69;
    676 _defineConstant("MAC_VK_PC_PrintScreen", MAC_VK_PC_PrintScreen);
    677 const MAC_VK_F16 = 0x6a;
    678 _defineConstant("MAC_VK_F16", MAC_VK_F16);
    679 const MAC_VK_F14 = 0x6b;
    680 _defineConstant("MAC_VK_F14", MAC_VK_F14);
    681 const MAC_VK_PC_ScrollLock = 0x6b;
    682 _defineConstant("MAC_VK_PC_ScrollLock", MAC_VK_PC_ScrollLock);
    683 const MAC_VK_F10 = 0x6d;
    684 _defineConstant("MAC_VK_F10", MAC_VK_F10);
    685 const MAC_VK_PC_ContextMenu = 0x6e;
    686 _defineConstant("MAC_VK_PC_ContextMenu", MAC_VK_PC_ContextMenu);
    687 const MAC_VK_F12 = 0x6f;
    688 _defineConstant("MAC_VK_F12", MAC_VK_F12);
    689 const MAC_VK_F15 = 0x71;
    690 _defineConstant("MAC_VK_F15", MAC_VK_F15);
    691 const MAC_VK_PC_Pause = 0x71;
    692 _defineConstant("MAC_VK_PC_Pause", MAC_VK_PC_Pause);
    693 const MAC_VK_Help = 0x72;
    694 _defineConstant("MAC_VK_Help", MAC_VK_Help);
    695 const MAC_VK_PC_Insert = 0x72;
    696 _defineConstant("MAC_VK_PC_Insert", MAC_VK_PC_Insert);
    697 const MAC_VK_Home = 0x73;
    698 _defineConstant("MAC_VK_Home", MAC_VK_Home);
    699 const MAC_VK_PageUp = 0x74;
    700 _defineConstant("MAC_VK_PageUp", MAC_VK_PageUp);
    701 const MAC_VK_ForwardDelete = 0x75;
    702 _defineConstant("MAC_VK_ForwardDelete", MAC_VK_ForwardDelete);
    703 const MAC_VK_PC_Delete = 0x75;
    704 _defineConstant("MAC_VK_PC_Delete", MAC_VK_PC_Delete);
    705 const MAC_VK_F4 = 0x76;
    706 _defineConstant("MAC_VK_F4", MAC_VK_F4);
    707 const MAC_VK_End = 0x77;
    708 _defineConstant("MAC_VK_End", MAC_VK_End);
    709 const MAC_VK_F2 = 0x78;
    710 _defineConstant("MAC_VK_F2", MAC_VK_F2);
    711 const MAC_VK_PageDown = 0x79;
    712 _defineConstant("MAC_VK_PageDown", MAC_VK_PageDown);
    713 const MAC_VK_F1 = 0x7a;
    714 _defineConstant("MAC_VK_F1", MAC_VK_F1);
    715 const MAC_VK_LeftArrow = 0x7b;
    716 _defineConstant("MAC_VK_LeftArrow", MAC_VK_LeftArrow);
    717 const MAC_VK_RightArrow = 0x7c;
    718 _defineConstant("MAC_VK_RightArrow", MAC_VK_RightArrow);
    719 const MAC_VK_DownArrow = 0x7d;
    720 _defineConstant("MAC_VK_DownArrow", MAC_VK_DownArrow);
    721 const MAC_VK_UpArrow = 0x7e;
    722 _defineConstant("MAC_VK_UpArrow", MAC_VK_UpArrow);