]> git.wh0rd.org - tt-rss.git/blob - lib/dojo/keys.js.uncompressed.js
update dojo to 1.7.3
[tt-rss.git] / lib / dojo / keys.js.uncompressed.js
1 define("dojo/keys", ["./_base/kernel", "./_base/sniff"], function(dojo, has) {
2 // module:
3 // dojo/keys
4 // summary:
5 // key constants
6 // Constants
7
8 // Public: client code should test
9 // keyCode against these named constants, as the
10 // actual codes can vary by browser.
11 return dojo.keys = {
12 // summary:
13 // Definitions for common key values
14 BACKSPACE: 8,
15 TAB: 9,
16 CLEAR: 12,
17 ENTER: 13,
18 SHIFT: 16,
19 CTRL: 17,
20 ALT: 18,
21 META: has("safari") ? 91 : 224, // the apple key on macs
22 PAUSE: 19,
23 CAPS_LOCK: 20,
24 ESCAPE: 27,
25 SPACE: 32,
26 PAGE_UP: 33,
27 PAGE_DOWN: 34,
28 END: 35,
29 HOME: 36,
30 LEFT_ARROW: 37,
31 UP_ARROW: 38,
32 RIGHT_ARROW: 39,
33 DOWN_ARROW: 40,
34 INSERT: 45,
35 DELETE: 46,
36 HELP: 47,
37 LEFT_WINDOW: 91,
38 RIGHT_WINDOW: 92,
39 SELECT: 93,
40 NUMPAD_0: 96,
41 NUMPAD_1: 97,
42 NUMPAD_2: 98,
43 NUMPAD_3: 99,
44 NUMPAD_4: 100,
45 NUMPAD_5: 101,
46 NUMPAD_6: 102,
47 NUMPAD_7: 103,
48 NUMPAD_8: 104,
49 NUMPAD_9: 105,
50 NUMPAD_MULTIPLY: 106,
51 NUMPAD_PLUS: 107,
52 NUMPAD_ENTER: 108,
53 NUMPAD_MINUS: 109,
54 NUMPAD_PERIOD: 110,
55 NUMPAD_DIVIDE: 111,
56 F1: 112,
57 F2: 113,
58 F3: 114,
59 F4: 115,
60 F5: 116,
61 F6: 117,
62 F7: 118,
63 F8: 119,
64 F9: 120,
65 F10: 121,
66 F11: 122,
67 F12: 123,
68 F13: 124,
69 F14: 125,
70 F15: 126,
71 NUM_LOCK: 144,
72 SCROLL_LOCK: 145,
73 UP_DPAD: 175,
74 DOWN_DPAD: 176,
75 LEFT_DPAD: 177,
76 RIGHT_DPAD: 178,
77 // virtual key mapping
78 copyKey: has("mac") && !has("air") ? (has("safari") ? 91 : 224 ) : 17
79 };
80 });