@novnc/novnc 1.6.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/core/base64.js +104 -0
  2. package/core/crypto/aes.js +178 -0
  3. package/core/crypto/bigint.js +34 -0
  4. package/core/crypto/crypto.js +90 -0
  5. package/core/crypto/des.js +330 -0
  6. package/core/crypto/dh.js +55 -0
  7. package/core/crypto/md5.js +82 -0
  8. package/core/crypto/rsa.js +132 -0
  9. package/core/decoders/copyrect.js +27 -0
  10. package/core/decoders/h264.js +321 -0
  11. package/core/decoders/hextile.js +181 -0
  12. package/core/decoders/jpeg.js +161 -0
  13. package/core/decoders/raw.js +59 -0
  14. package/core/decoders/rre.js +44 -0
  15. package/core/decoders/tight.js +393 -0
  16. package/core/decoders/tightpng.js +27 -0
  17. package/core/decoders/zlib.js +51 -0
  18. package/core/decoders/zrle.js +185 -0
  19. package/core/deflator.js +84 -0
  20. package/core/display.js +578 -0
  21. package/core/encodings.js +54 -0
  22. package/core/inflator.js +65 -0
  23. package/core/input/domkeytable.js +311 -0
  24. package/core/input/fixedkeys.js +129 -0
  25. package/core/input/gesturehandler.js +567 -0
  26. package/core/input/keyboard.js +294 -0
  27. package/core/input/keysym.js +616 -0
  28. package/core/input/keysymdef.js +688 -0
  29. package/core/input/util.js +191 -0
  30. package/core/input/vkeys.js +116 -0
  31. package/core/input/xtscancodes.js +173 -0
  32. package/core/ra2.js +312 -0
  33. package/core/rfb.js +3411 -0
  34. package/core/util/browser.js +233 -0
  35. package/core/util/cursor.js +249 -0
  36. package/core/util/element.js +32 -0
  37. package/core/util/events.js +138 -0
  38. package/core/util/eventtarget.js +35 -0
  39. package/core/util/int.js +15 -0
  40. package/core/util/logging.js +56 -0
  41. package/core/util/strings.js +28 -0
  42. package/core/websock.js +369 -0
  43. package/docs/API.md +0 -5
  44. package/package.json +6 -10
  45. package/vendor/pako/LICENSE +21 -0
  46. package/vendor/pako/README.md +6 -0
  47. package/{lib/vendor → vendor}/pako/lib/utils/common.js +13 -23
  48. package/{lib/vendor → vendor}/pako/lib/zlib/adler32.js +12 -14
  49. package/vendor/pako/lib/zlib/constants.js +47 -0
  50. package/{lib/vendor → vendor}/pako/lib/zlib/crc32.js +15 -14
  51. package/{lib/vendor → vendor}/pako/lib/zlib/deflate.js +459 -334
  52. package/{lib/vendor → vendor}/pako/lib/zlib/gzheader.js +13 -19
  53. package/{lib/vendor → vendor}/pako/lib/zlib/inffast.js +116 -119
  54. package/vendor/pako/lib/zlib/inflate.js +1527 -0
  55. package/{lib/vendor → vendor}/pako/lib/zlib/inftrees.js +103 -91
  56. package/vendor/pako/lib/zlib/messages.js +11 -0
  57. package/{lib/vendor → vendor}/pako/lib/zlib/trees.js +313 -268
  58. package/{lib/vendor → vendor}/pako/lib/zlib/zstream.js +4 -10
  59. package/lib/base64.js +0 -100
  60. package/lib/crypto/aes.js +0 -481
  61. package/lib/crypto/bigint.js +0 -41
  62. package/lib/crypto/crypto.js +0 -109
  63. package/lib/crypto/des.js +0 -374
  64. package/lib/crypto/dh.js +0 -81
  65. package/lib/crypto/md5.js +0 -97
  66. package/lib/crypto/rsa.js +0 -312
  67. package/lib/decoders/copyrect.js +0 -40
  68. package/lib/decoders/h264.js +0 -349
  69. package/lib/decoders/hextile.js +0 -195
  70. package/lib/decoders/jpeg.js +0 -175
  71. package/lib/decoders/raw.js +0 -66
  72. package/lib/decoders/rre.js +0 -52
  73. package/lib/decoders/tight.js +0 -363
  74. package/lib/decoders/tightpng.js +0 -51
  75. package/lib/decoders/zlib.js +0 -57
  76. package/lib/decoders/zrle.js +0 -192
  77. package/lib/deflator.js +0 -88
  78. package/lib/display.js +0 -588
  79. package/lib/encodings.js +0 -70
  80. package/lib/inflator.js +0 -77
  81. package/lib/input/domkeytable.js +0 -313
  82. package/lib/input/fixedkeys.js +0 -127
  83. package/lib/input/gesturehandler.js +0 -573
  84. package/lib/input/keyboard.js +0 -293
  85. package/lib/input/keysym.js +0 -878
  86. package/lib/input/keysymdef.js +0 -1351
  87. package/lib/input/util.js +0 -217
  88. package/lib/input/vkeys.js +0 -121
  89. package/lib/input/xtscancodes.js +0 -343
  90. package/lib/ra2.js +0 -535
  91. package/lib/rfb.js +0 -3398
  92. package/lib/util/browser.js +0 -239
  93. package/lib/util/cursor.js +0 -269
  94. package/lib/util/element.js +0 -41
  95. package/lib/util/events.js +0 -133
  96. package/lib/util/eventtarget.js +0 -53
  97. package/lib/util/int.js +0 -21
  98. package/lib/util/logging.js +0 -56
  99. package/lib/util/strings.js +0 -36
  100. package/lib/vendor/pako/lib/zlib/constants.js +0 -47
  101. package/lib/vendor/pako/lib/zlib/inflate.js +0 -1602
  102. package/lib/vendor/pako/lib/zlib/messages.js +0 -25
  103. package/lib/websock.js +0 -395
package/lib/input/util.js DELETED
@@ -1,217 +0,0 @@
1
- "use strict";
2
-
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.getKey = getKey;
8
- exports.getKeycode = getKeycode;
9
- exports.getKeysym = getKeysym;
10
- var _keysym = _interopRequireDefault(require("./keysym.js"));
11
- var _keysymdef = _interopRequireDefault(require("./keysymdef.js"));
12
- var _vkeys = _interopRequireDefault(require("./vkeys.js"));
13
- var _fixedkeys = _interopRequireDefault(require("./fixedkeys.js"));
14
- var _domkeytable = _interopRequireDefault(require("./domkeytable.js"));
15
- var browser = _interopRequireWildcard(require("../util/browser.js"));
16
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
17
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
18
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
19
- // Get 'KeyboardEvent.code', handling legacy browsers
20
- function getKeycode(evt) {
21
- // Are we getting proper key identifiers?
22
- // (unfortunately Firefox and Chrome are crappy here and gives
23
- // us an empty string on some platforms, rather than leaving it
24
- // undefined)
25
- if (evt.code) {
26
- // Mozilla isn't fully in sync with the spec yet
27
- switch (evt.code) {
28
- case 'OSLeft':
29
- return 'MetaLeft';
30
- case 'OSRight':
31
- return 'MetaRight';
32
- }
33
- return evt.code;
34
- }
35
-
36
- // The de-facto standard is to use Windows Virtual-Key codes
37
- // in the 'keyCode' field for non-printable characters
38
- if (evt.keyCode in _vkeys["default"]) {
39
- var code = _vkeys["default"][evt.keyCode];
40
-
41
- // macOS has messed up this code for some reason
42
- if (browser.isMac() && code === 'ContextMenu') {
43
- code = 'MetaRight';
44
- }
45
-
46
- // The keyCode doesn't distinguish between left and right
47
- // for the standard modifiers
48
- if (evt.location === 2) {
49
- switch (code) {
50
- case 'ShiftLeft':
51
- return 'ShiftRight';
52
- case 'ControlLeft':
53
- return 'ControlRight';
54
- case 'AltLeft':
55
- return 'AltRight';
56
- }
57
- }
58
-
59
- // Nor a bunch of the numpad keys
60
- if (evt.location === 3) {
61
- switch (code) {
62
- case 'Delete':
63
- return 'NumpadDecimal';
64
- case 'Insert':
65
- return 'Numpad0';
66
- case 'End':
67
- return 'Numpad1';
68
- case 'ArrowDown':
69
- return 'Numpad2';
70
- case 'PageDown':
71
- return 'Numpad3';
72
- case 'ArrowLeft':
73
- return 'Numpad4';
74
- case 'ArrowRight':
75
- return 'Numpad6';
76
- case 'Home':
77
- return 'Numpad7';
78
- case 'ArrowUp':
79
- return 'Numpad8';
80
- case 'PageUp':
81
- return 'Numpad9';
82
- case 'Enter':
83
- return 'NumpadEnter';
84
- }
85
- }
86
- return code;
87
- }
88
- return 'Unidentified';
89
- }
90
-
91
- // Get 'KeyboardEvent.key', handling legacy browsers
92
- function getKey(evt) {
93
- // Are we getting a proper key value?
94
- if (evt.key !== undefined && evt.key !== 'Unidentified') {
95
- // Mozilla isn't fully in sync with the spec yet
96
- switch (evt.key) {
97
- case 'OS':
98
- return 'Meta';
99
- case 'LaunchMyComputer':
100
- return 'LaunchApplication1';
101
- case 'LaunchCalculator':
102
- return 'LaunchApplication2';
103
- }
104
-
105
- // iOS leaks some OS names
106
- switch (evt.key) {
107
- case 'UIKeyInputUpArrow':
108
- return 'ArrowUp';
109
- case 'UIKeyInputDownArrow':
110
- return 'ArrowDown';
111
- case 'UIKeyInputLeftArrow':
112
- return 'ArrowLeft';
113
- case 'UIKeyInputRightArrow':
114
- return 'ArrowRight';
115
- case 'UIKeyInputEscape':
116
- return 'Escape';
117
- }
118
-
119
- // Broken behaviour in Chrome
120
- if (evt.key === '\x00' && evt.code === 'NumpadDecimal') {
121
- return 'Delete';
122
- }
123
- return evt.key;
124
- }
125
-
126
- // Try to deduce it based on the physical key
127
- var code = getKeycode(evt);
128
- if (code in _fixedkeys["default"]) {
129
- return _fixedkeys["default"][code];
130
- }
131
-
132
- // If that failed, then see if we have a printable character
133
- if (evt.charCode) {
134
- return String.fromCharCode(evt.charCode);
135
- }
136
-
137
- // At this point we have nothing left to go on
138
- return 'Unidentified';
139
- }
140
-
141
- // Get the most reliable keysym value we can get from a key event
142
- function getKeysym(evt) {
143
- var key = getKey(evt);
144
- if (key === 'Unidentified') {
145
- return null;
146
- }
147
-
148
- // First look up special keys
149
- if (key in _domkeytable["default"]) {
150
- var location = evt.location;
151
-
152
- // Safari screws up location for the right cmd key
153
- if (key === 'Meta' && location === 0) {
154
- location = 2;
155
- }
156
-
157
- // And for Clear
158
- if (key === 'Clear' && location === 3) {
159
- var code = getKeycode(evt);
160
- if (code === 'NumLock') {
161
- location = 0;
162
- }
163
- }
164
- if (location === undefined || location > 3) {
165
- location = 0;
166
- }
167
-
168
- // The original Meta key now gets confused with the Windows key
169
- // https://bugs.chromium.org/p/chromium/issues/detail?id=1020141
170
- // https://bugzilla.mozilla.org/show_bug.cgi?id=1232918
171
- if (key === 'Meta') {
172
- var _code = getKeycode(evt);
173
- if (_code === 'AltLeft') {
174
- return _keysym["default"].XK_Meta_L;
175
- } else if (_code === 'AltRight') {
176
- return _keysym["default"].XK_Meta_R;
177
- }
178
- }
179
-
180
- // macOS has Clear instead of NumLock, but the remote system is
181
- // probably not macOS, so lying here is probably best...
182
- if (key === 'Clear') {
183
- var _code2 = getKeycode(evt);
184
- if (_code2 === 'NumLock') {
185
- return _keysym["default"].XK_Num_Lock;
186
- }
187
- }
188
-
189
- // Windows sends alternating symbols for some keys when using a
190
- // Japanese layout. We have no way of synchronising with the IM
191
- // running on the remote system, so we send some combined keysym
192
- // instead and hope for the best.
193
- if (browser.isWindows()) {
194
- switch (key) {
195
- case 'Zenkaku':
196
- case 'Hankaku':
197
- return _keysym["default"].XK_Zenkaku_Hankaku;
198
- case 'Romaji':
199
- case 'KanaMode':
200
- return _keysym["default"].XK_Romaji;
201
- }
202
- }
203
- return _domkeytable["default"][key][location];
204
- }
205
-
206
- // Now we need to look at the Unicode symbol instead
207
-
208
- // Special key? (FIXME: Should have been caught earlier)
209
- if (key.length !== 1) {
210
- return null;
211
- }
212
- var codepoint = key.charCodeAt();
213
- if (codepoint) {
214
- return _keysymdef["default"].lookup(codepoint);
215
- }
216
- return null;
217
- }
@@ -1,121 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- /*
8
- * noVNC: HTML5 VNC client
9
- * Copyright (C) 2018 The noVNC authors
10
- * Licensed under MPL 2.0 or any later version (see LICENSE.txt)
11
- */
12
- /*
13
- * Mapping between Microsoft® Windows® Virtual-Key codes and
14
- * HTML key codes.
15
- */
16
- var _default = exports["default"] = {
17
- 0x08: 'Backspace',
18
- 0x09: 'Tab',
19
- 0x0a: 'NumpadClear',
20
- 0x0d: 'Enter',
21
- 0x10: 'ShiftLeft',
22
- 0x11: 'ControlLeft',
23
- 0x12: 'AltLeft',
24
- 0x13: 'Pause',
25
- 0x14: 'CapsLock',
26
- 0x15: 'Lang1',
27
- 0x19: 'Lang2',
28
- 0x1b: 'Escape',
29
- 0x1c: 'Convert',
30
- 0x1d: 'NonConvert',
31
- 0x20: 'Space',
32
- 0x21: 'PageUp',
33
- 0x22: 'PageDown',
34
- 0x23: 'End',
35
- 0x24: 'Home',
36
- 0x25: 'ArrowLeft',
37
- 0x26: 'ArrowUp',
38
- 0x27: 'ArrowRight',
39
- 0x28: 'ArrowDown',
40
- 0x29: 'Select',
41
- 0x2c: 'PrintScreen',
42
- 0x2d: 'Insert',
43
- 0x2e: 'Delete',
44
- 0x2f: 'Help',
45
- 0x30: 'Digit0',
46
- 0x31: 'Digit1',
47
- 0x32: 'Digit2',
48
- 0x33: 'Digit3',
49
- 0x34: 'Digit4',
50
- 0x35: 'Digit5',
51
- 0x36: 'Digit6',
52
- 0x37: 'Digit7',
53
- 0x38: 'Digit8',
54
- 0x39: 'Digit9',
55
- 0x5b: 'MetaLeft',
56
- 0x5c: 'MetaRight',
57
- 0x5d: 'ContextMenu',
58
- 0x5f: 'Sleep',
59
- 0x60: 'Numpad0',
60
- 0x61: 'Numpad1',
61
- 0x62: 'Numpad2',
62
- 0x63: 'Numpad3',
63
- 0x64: 'Numpad4',
64
- 0x65: 'Numpad5',
65
- 0x66: 'Numpad6',
66
- 0x67: 'Numpad7',
67
- 0x68: 'Numpad8',
68
- 0x69: 'Numpad9',
69
- 0x6a: 'NumpadMultiply',
70
- 0x6b: 'NumpadAdd',
71
- 0x6c: 'NumpadDecimal',
72
- 0x6d: 'NumpadSubtract',
73
- 0x6e: 'NumpadDecimal',
74
- // Duplicate, because buggy on Windows
75
- 0x6f: 'NumpadDivide',
76
- 0x70: 'F1',
77
- 0x71: 'F2',
78
- 0x72: 'F3',
79
- 0x73: 'F4',
80
- 0x74: 'F5',
81
- 0x75: 'F6',
82
- 0x76: 'F7',
83
- 0x77: 'F8',
84
- 0x78: 'F9',
85
- 0x79: 'F10',
86
- 0x7a: 'F11',
87
- 0x7b: 'F12',
88
- 0x7c: 'F13',
89
- 0x7d: 'F14',
90
- 0x7e: 'F15',
91
- 0x7f: 'F16',
92
- 0x80: 'F17',
93
- 0x81: 'F18',
94
- 0x82: 'F19',
95
- 0x83: 'F20',
96
- 0x84: 'F21',
97
- 0x85: 'F22',
98
- 0x86: 'F23',
99
- 0x87: 'F24',
100
- 0x90: 'NumLock',
101
- 0x91: 'ScrollLock',
102
- 0xa6: 'BrowserBack',
103
- 0xa7: 'BrowserForward',
104
- 0xa8: 'BrowserRefresh',
105
- 0xa9: 'BrowserStop',
106
- 0xaa: 'BrowserSearch',
107
- 0xab: 'BrowserFavorites',
108
- 0xac: 'BrowserHome',
109
- 0xad: 'AudioVolumeMute',
110
- 0xae: 'AudioVolumeDown',
111
- 0xaf: 'AudioVolumeUp',
112
- 0xb0: 'MediaTrackNext',
113
- 0xb1: 'MediaTrackPrevious',
114
- 0xb2: 'MediaStop',
115
- 0xb3: 'MediaPlayPause',
116
- 0xb4: 'LaunchMail',
117
- 0xb5: 'MediaSelect',
118
- 0xb6: 'LaunchApp1',
119
- 0xb7: 'LaunchApp2',
120
- 0xe1: 'AltRight' // Only when it is AltGraph
121
- };
@@ -1,343 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- /*
8
- * This file is auto-generated from keymaps.csv
9
- * Database checksum sha256(76d68c10e97d37fe2ea459e210125ae41796253fb217e900bf2983ade13a7920)
10
- * To re-generate, run:
11
- * keymap-gen code-map --lang=js keymaps.csv html atset1
12
- */
13
- var _default = exports["default"] = {
14
- "Again": 0xe005,
15
- /* html:Again (Again) -> linux:129 (KEY_AGAIN) -> atset1:57349 */
16
- "AltLeft": 0x38,
17
- /* html:AltLeft (AltLeft) -> linux:56 (KEY_LEFTALT) -> atset1:56 */
18
- "AltRight": 0xe038,
19
- /* html:AltRight (AltRight) -> linux:100 (KEY_RIGHTALT) -> atset1:57400 */
20
- "ArrowDown": 0xe050,
21
- /* html:ArrowDown (ArrowDown) -> linux:108 (KEY_DOWN) -> atset1:57424 */
22
- "ArrowLeft": 0xe04b,
23
- /* html:ArrowLeft (ArrowLeft) -> linux:105 (KEY_LEFT) -> atset1:57419 */
24
- "ArrowRight": 0xe04d,
25
- /* html:ArrowRight (ArrowRight) -> linux:106 (KEY_RIGHT) -> atset1:57421 */
26
- "ArrowUp": 0xe048,
27
- /* html:ArrowUp (ArrowUp) -> linux:103 (KEY_UP) -> atset1:57416 */
28
- "AudioVolumeDown": 0xe02e,
29
- /* html:AudioVolumeDown (AudioVolumeDown) -> linux:114 (KEY_VOLUMEDOWN) -> atset1:57390 */
30
- "AudioVolumeMute": 0xe020,
31
- /* html:AudioVolumeMute (AudioVolumeMute) -> linux:113 (KEY_MUTE) -> atset1:57376 */
32
- "AudioVolumeUp": 0xe030,
33
- /* html:AudioVolumeUp (AudioVolumeUp) -> linux:115 (KEY_VOLUMEUP) -> atset1:57392 */
34
- "Backquote": 0x29,
35
- /* html:Backquote (Backquote) -> linux:41 (KEY_GRAVE) -> atset1:41 */
36
- "Backslash": 0x2b,
37
- /* html:Backslash (Backslash) -> linux:43 (KEY_BACKSLASH) -> atset1:43 */
38
- "Backspace": 0xe,
39
- /* html:Backspace (Backspace) -> linux:14 (KEY_BACKSPACE) -> atset1:14 */
40
- "BracketLeft": 0x1a,
41
- /* html:BracketLeft (BracketLeft) -> linux:26 (KEY_LEFTBRACE) -> atset1:26 */
42
- "BracketRight": 0x1b,
43
- /* html:BracketRight (BracketRight) -> linux:27 (KEY_RIGHTBRACE) -> atset1:27 */
44
- "BrowserBack": 0xe06a,
45
- /* html:BrowserBack (BrowserBack) -> linux:158 (KEY_BACK) -> atset1:57450 */
46
- "BrowserFavorites": 0xe066,
47
- /* html:BrowserFavorites (BrowserFavorites) -> linux:156 (KEY_BOOKMARKS) -> atset1:57446 */
48
- "BrowserForward": 0xe069,
49
- /* html:BrowserForward (BrowserForward) -> linux:159 (KEY_FORWARD) -> atset1:57449 */
50
- "BrowserHome": 0xe032,
51
- /* html:BrowserHome (BrowserHome) -> linux:172 (KEY_HOMEPAGE) -> atset1:57394 */
52
- "BrowserRefresh": 0xe067,
53
- /* html:BrowserRefresh (BrowserRefresh) -> linux:173 (KEY_REFRESH) -> atset1:57447 */
54
- "BrowserSearch": 0xe065,
55
- /* html:BrowserSearch (BrowserSearch) -> linux:217 (KEY_SEARCH) -> atset1:57445 */
56
- "BrowserStop": 0xe068,
57
- /* html:BrowserStop (BrowserStop) -> linux:128 (KEY_STOP) -> atset1:57448 */
58
- "CapsLock": 0x3a,
59
- /* html:CapsLock (CapsLock) -> linux:58 (KEY_CAPSLOCK) -> atset1:58 */
60
- "Comma": 0x33,
61
- /* html:Comma (Comma) -> linux:51 (KEY_COMMA) -> atset1:51 */
62
- "ContextMenu": 0xe05d,
63
- /* html:ContextMenu (ContextMenu) -> linux:127 (KEY_COMPOSE) -> atset1:57437 */
64
- "ControlLeft": 0x1d,
65
- /* html:ControlLeft (ControlLeft) -> linux:29 (KEY_LEFTCTRL) -> atset1:29 */
66
- "ControlRight": 0xe01d,
67
- /* html:ControlRight (ControlRight) -> linux:97 (KEY_RIGHTCTRL) -> atset1:57373 */
68
- "Convert": 0x79,
69
- /* html:Convert (Convert) -> linux:92 (KEY_HENKAN) -> atset1:121 */
70
- "Copy": 0xe078,
71
- /* html:Copy (Copy) -> linux:133 (KEY_COPY) -> atset1:57464 */
72
- "Cut": 0xe03c,
73
- /* html:Cut (Cut) -> linux:137 (KEY_CUT) -> atset1:57404 */
74
- "Delete": 0xe053,
75
- /* html:Delete (Delete) -> linux:111 (KEY_DELETE) -> atset1:57427 */
76
- "Digit0": 0xb,
77
- /* html:Digit0 (Digit0) -> linux:11 (KEY_0) -> atset1:11 */
78
- "Digit1": 0x2,
79
- /* html:Digit1 (Digit1) -> linux:2 (KEY_1) -> atset1:2 */
80
- "Digit2": 0x3,
81
- /* html:Digit2 (Digit2) -> linux:3 (KEY_2) -> atset1:3 */
82
- "Digit3": 0x4,
83
- /* html:Digit3 (Digit3) -> linux:4 (KEY_3) -> atset1:4 */
84
- "Digit4": 0x5,
85
- /* html:Digit4 (Digit4) -> linux:5 (KEY_4) -> atset1:5 */
86
- "Digit5": 0x6,
87
- /* html:Digit5 (Digit5) -> linux:6 (KEY_5) -> atset1:6 */
88
- "Digit6": 0x7,
89
- /* html:Digit6 (Digit6) -> linux:7 (KEY_6) -> atset1:7 */
90
- "Digit7": 0x8,
91
- /* html:Digit7 (Digit7) -> linux:8 (KEY_7) -> atset1:8 */
92
- "Digit8": 0x9,
93
- /* html:Digit8 (Digit8) -> linux:9 (KEY_8) -> atset1:9 */
94
- "Digit9": 0xa,
95
- /* html:Digit9 (Digit9) -> linux:10 (KEY_9) -> atset1:10 */
96
- "Eject": 0xe07d,
97
- /* html:Eject (Eject) -> linux:162 (KEY_EJECTCLOSECD) -> atset1:57469 */
98
- "End": 0xe04f,
99
- /* html:End (End) -> linux:107 (KEY_END) -> atset1:57423 */
100
- "Enter": 0x1c,
101
- /* html:Enter (Enter) -> linux:28 (KEY_ENTER) -> atset1:28 */
102
- "Equal": 0xd,
103
- /* html:Equal (Equal) -> linux:13 (KEY_EQUAL) -> atset1:13 */
104
- "Escape": 0x1,
105
- /* html:Escape (Escape) -> linux:1 (KEY_ESC) -> atset1:1 */
106
- "F1": 0x3b,
107
- /* html:F1 (F1) -> linux:59 (KEY_F1) -> atset1:59 */
108
- "F10": 0x44,
109
- /* html:F10 (F10) -> linux:68 (KEY_F10) -> atset1:68 */
110
- "F11": 0x57,
111
- /* html:F11 (F11) -> linux:87 (KEY_F11) -> atset1:87 */
112
- "F12": 0x58,
113
- /* html:F12 (F12) -> linux:88 (KEY_F12) -> atset1:88 */
114
- "F13": 0x5d,
115
- /* html:F13 (F13) -> linux:183 (KEY_F13) -> atset1:93 */
116
- "F14": 0x5e,
117
- /* html:F14 (F14) -> linux:184 (KEY_F14) -> atset1:94 */
118
- "F15": 0x5f,
119
- /* html:F15 (F15) -> linux:185 (KEY_F15) -> atset1:95 */
120
- "F16": 0x55,
121
- /* html:F16 (F16) -> linux:186 (KEY_F16) -> atset1:85 */
122
- "F17": 0xe003,
123
- /* html:F17 (F17) -> linux:187 (KEY_F17) -> atset1:57347 */
124
- "F18": 0xe077,
125
- /* html:F18 (F18) -> linux:188 (KEY_F18) -> atset1:57463 */
126
- "F19": 0xe004,
127
- /* html:F19 (F19) -> linux:189 (KEY_F19) -> atset1:57348 */
128
- "F2": 0x3c,
129
- /* html:F2 (F2) -> linux:60 (KEY_F2) -> atset1:60 */
130
- "F20": 0x5a,
131
- /* html:F20 (F20) -> linux:190 (KEY_F20) -> atset1:90 */
132
- "F21": 0x74,
133
- /* html:F21 (F21) -> linux:191 (KEY_F21) -> atset1:116 */
134
- "F22": 0xe079,
135
- /* html:F22 (F22) -> linux:192 (KEY_F22) -> atset1:57465 */
136
- "F23": 0x6d,
137
- /* html:F23 (F23) -> linux:193 (KEY_F23) -> atset1:109 */
138
- "F24": 0x6f,
139
- /* html:F24 (F24) -> linux:194 (KEY_F24) -> atset1:111 */
140
- "F3": 0x3d,
141
- /* html:F3 (F3) -> linux:61 (KEY_F3) -> atset1:61 */
142
- "F4": 0x3e,
143
- /* html:F4 (F4) -> linux:62 (KEY_F4) -> atset1:62 */
144
- "F5": 0x3f,
145
- /* html:F5 (F5) -> linux:63 (KEY_F5) -> atset1:63 */
146
- "F6": 0x40,
147
- /* html:F6 (F6) -> linux:64 (KEY_F6) -> atset1:64 */
148
- "F7": 0x41,
149
- /* html:F7 (F7) -> linux:65 (KEY_F7) -> atset1:65 */
150
- "F8": 0x42,
151
- /* html:F8 (F8) -> linux:66 (KEY_F8) -> atset1:66 */
152
- "F9": 0x43,
153
- /* html:F9 (F9) -> linux:67 (KEY_F9) -> atset1:67 */
154
- "Find": 0xe041,
155
- /* html:Find (Find) -> linux:136 (KEY_FIND) -> atset1:57409 */
156
- "Help": 0xe075,
157
- /* html:Help (Help) -> linux:138 (KEY_HELP) -> atset1:57461 */
158
- "Hiragana": 0x77,
159
- /* html:Hiragana (Lang4) -> linux:91 (KEY_HIRAGANA) -> atset1:119 */
160
- "Home": 0xe047,
161
- /* html:Home (Home) -> linux:102 (KEY_HOME) -> atset1:57415 */
162
- "Insert": 0xe052,
163
- /* html:Insert (Insert) -> linux:110 (KEY_INSERT) -> atset1:57426 */
164
- "IntlBackslash": 0x56,
165
- /* html:IntlBackslash (IntlBackslash) -> linux:86 (KEY_102ND) -> atset1:86 */
166
- "IntlRo": 0x73,
167
- /* html:IntlRo (IntlRo) -> linux:89 (KEY_RO) -> atset1:115 */
168
- "IntlYen": 0x7d,
169
- /* html:IntlYen (IntlYen) -> linux:124 (KEY_YEN) -> atset1:125 */
170
- "KanaMode": 0x70,
171
- /* html:KanaMode (KanaMode) -> linux:93 (KEY_KATAKANAHIRAGANA) -> atset1:112 */
172
- "Katakana": 0x78,
173
- /* html:Katakana (Lang3) -> linux:90 (KEY_KATAKANA) -> atset1:120 */
174
- "KeyA": 0x1e,
175
- /* html:KeyA (KeyA) -> linux:30 (KEY_A) -> atset1:30 */
176
- "KeyB": 0x30,
177
- /* html:KeyB (KeyB) -> linux:48 (KEY_B) -> atset1:48 */
178
- "KeyC": 0x2e,
179
- /* html:KeyC (KeyC) -> linux:46 (KEY_C) -> atset1:46 */
180
- "KeyD": 0x20,
181
- /* html:KeyD (KeyD) -> linux:32 (KEY_D) -> atset1:32 */
182
- "KeyE": 0x12,
183
- /* html:KeyE (KeyE) -> linux:18 (KEY_E) -> atset1:18 */
184
- "KeyF": 0x21,
185
- /* html:KeyF (KeyF) -> linux:33 (KEY_F) -> atset1:33 */
186
- "KeyG": 0x22,
187
- /* html:KeyG (KeyG) -> linux:34 (KEY_G) -> atset1:34 */
188
- "KeyH": 0x23,
189
- /* html:KeyH (KeyH) -> linux:35 (KEY_H) -> atset1:35 */
190
- "KeyI": 0x17,
191
- /* html:KeyI (KeyI) -> linux:23 (KEY_I) -> atset1:23 */
192
- "KeyJ": 0x24,
193
- /* html:KeyJ (KeyJ) -> linux:36 (KEY_J) -> atset1:36 */
194
- "KeyK": 0x25,
195
- /* html:KeyK (KeyK) -> linux:37 (KEY_K) -> atset1:37 */
196
- "KeyL": 0x26,
197
- /* html:KeyL (KeyL) -> linux:38 (KEY_L) -> atset1:38 */
198
- "KeyM": 0x32,
199
- /* html:KeyM (KeyM) -> linux:50 (KEY_M) -> atset1:50 */
200
- "KeyN": 0x31,
201
- /* html:KeyN (KeyN) -> linux:49 (KEY_N) -> atset1:49 */
202
- "KeyO": 0x18,
203
- /* html:KeyO (KeyO) -> linux:24 (KEY_O) -> atset1:24 */
204
- "KeyP": 0x19,
205
- /* html:KeyP (KeyP) -> linux:25 (KEY_P) -> atset1:25 */
206
- "KeyQ": 0x10,
207
- /* html:KeyQ (KeyQ) -> linux:16 (KEY_Q) -> atset1:16 */
208
- "KeyR": 0x13,
209
- /* html:KeyR (KeyR) -> linux:19 (KEY_R) -> atset1:19 */
210
- "KeyS": 0x1f,
211
- /* html:KeyS (KeyS) -> linux:31 (KEY_S) -> atset1:31 */
212
- "KeyT": 0x14,
213
- /* html:KeyT (KeyT) -> linux:20 (KEY_T) -> atset1:20 */
214
- "KeyU": 0x16,
215
- /* html:KeyU (KeyU) -> linux:22 (KEY_U) -> atset1:22 */
216
- "KeyV": 0x2f,
217
- /* html:KeyV (KeyV) -> linux:47 (KEY_V) -> atset1:47 */
218
- "KeyW": 0x11,
219
- /* html:KeyW (KeyW) -> linux:17 (KEY_W) -> atset1:17 */
220
- "KeyX": 0x2d,
221
- /* html:KeyX (KeyX) -> linux:45 (KEY_X) -> atset1:45 */
222
- "KeyY": 0x15,
223
- /* html:KeyY (KeyY) -> linux:21 (KEY_Y) -> atset1:21 */
224
- "KeyZ": 0x2c,
225
- /* html:KeyZ (KeyZ) -> linux:44 (KEY_Z) -> atset1:44 */
226
- "Lang1": 0x72,
227
- /* html:Lang1 (Lang1) -> linux:122 (KEY_HANGEUL) -> atset1:114 */
228
- "Lang2": 0x71,
229
- /* html:Lang2 (Lang2) -> linux:123 (KEY_HANJA) -> atset1:113 */
230
- "Lang3": 0x78,
231
- /* html:Lang3 (Lang3) -> linux:90 (KEY_KATAKANA) -> atset1:120 */
232
- "Lang4": 0x77,
233
- /* html:Lang4 (Lang4) -> linux:91 (KEY_HIRAGANA) -> atset1:119 */
234
- "Lang5": 0x76,
235
- /* html:Lang5 (Lang5) -> linux:85 (KEY_ZENKAKUHANKAKU) -> atset1:118 */
236
- "LaunchApp1": 0xe06b,
237
- /* html:LaunchApp1 (LaunchApp1) -> linux:157 (KEY_COMPUTER) -> atset1:57451 */
238
- "LaunchApp2": 0xe021,
239
- /* html:LaunchApp2 (LaunchApp2) -> linux:140 (KEY_CALC) -> atset1:57377 */
240
- "LaunchMail": 0xe06c,
241
- /* html:LaunchMail (LaunchMail) -> linux:155 (KEY_MAIL) -> atset1:57452 */
242
- "MediaPlayPause": 0xe022,
243
- /* html:MediaPlayPause (MediaPlayPause) -> linux:164 (KEY_PLAYPAUSE) -> atset1:57378 */
244
- "MediaSelect": 0xe06d,
245
- /* html:MediaSelect (MediaSelect) -> linux:226 (KEY_MEDIA) -> atset1:57453 */
246
- "MediaStop": 0xe024,
247
- /* html:MediaStop (MediaStop) -> linux:166 (KEY_STOPCD) -> atset1:57380 */
248
- "MediaTrackNext": 0xe019,
249
- /* html:MediaTrackNext (MediaTrackNext) -> linux:163 (KEY_NEXTSONG) -> atset1:57369 */
250
- "MediaTrackPrevious": 0xe010,
251
- /* html:MediaTrackPrevious (MediaTrackPrevious) -> linux:165 (KEY_PREVIOUSSONG) -> atset1:57360 */
252
- "MetaLeft": 0xe05b,
253
- /* html:MetaLeft (MetaLeft) -> linux:125 (KEY_LEFTMETA) -> atset1:57435 */
254
- "MetaRight": 0xe05c,
255
- /* html:MetaRight (MetaRight) -> linux:126 (KEY_RIGHTMETA) -> atset1:57436 */
256
- "Minus": 0xc,
257
- /* html:Minus (Minus) -> linux:12 (KEY_MINUS) -> atset1:12 */
258
- "NonConvert": 0x7b,
259
- /* html:NonConvert (NonConvert) -> linux:94 (KEY_MUHENKAN) -> atset1:123 */
260
- "NumLock": 0x45,
261
- /* html:NumLock (NumLock) -> linux:69 (KEY_NUMLOCK) -> atset1:69 */
262
- "Numpad0": 0x52,
263
- /* html:Numpad0 (Numpad0) -> linux:82 (KEY_KP0) -> atset1:82 */
264
- "Numpad1": 0x4f,
265
- /* html:Numpad1 (Numpad1) -> linux:79 (KEY_KP1) -> atset1:79 */
266
- "Numpad2": 0x50,
267
- /* html:Numpad2 (Numpad2) -> linux:80 (KEY_KP2) -> atset1:80 */
268
- "Numpad3": 0x51,
269
- /* html:Numpad3 (Numpad3) -> linux:81 (KEY_KP3) -> atset1:81 */
270
- "Numpad4": 0x4b,
271
- /* html:Numpad4 (Numpad4) -> linux:75 (KEY_KP4) -> atset1:75 */
272
- "Numpad5": 0x4c,
273
- /* html:Numpad5 (Numpad5) -> linux:76 (KEY_KP5) -> atset1:76 */
274
- "Numpad6": 0x4d,
275
- /* html:Numpad6 (Numpad6) -> linux:77 (KEY_KP6) -> atset1:77 */
276
- "Numpad7": 0x47,
277
- /* html:Numpad7 (Numpad7) -> linux:71 (KEY_KP7) -> atset1:71 */
278
- "Numpad8": 0x48,
279
- /* html:Numpad8 (Numpad8) -> linux:72 (KEY_KP8) -> atset1:72 */
280
- "Numpad9": 0x49,
281
- /* html:Numpad9 (Numpad9) -> linux:73 (KEY_KP9) -> atset1:73 */
282
- "NumpadAdd": 0x4e,
283
- /* html:NumpadAdd (NumpadAdd) -> linux:78 (KEY_KPPLUS) -> atset1:78 */
284
- "NumpadComma": 0x7e,
285
- /* html:NumpadComma (NumpadComma) -> linux:121 (KEY_KPCOMMA) -> atset1:126 */
286
- "NumpadDecimal": 0x53,
287
- /* html:NumpadDecimal (NumpadDecimal) -> linux:83 (KEY_KPDOT) -> atset1:83 */
288
- "NumpadDivide": 0xe035,
289
- /* html:NumpadDivide (NumpadDivide) -> linux:98 (KEY_KPSLASH) -> atset1:57397 */
290
- "NumpadEnter": 0xe01c,
291
- /* html:NumpadEnter (NumpadEnter) -> linux:96 (KEY_KPENTER) -> atset1:57372 */
292
- "NumpadEqual": 0x59,
293
- /* html:NumpadEqual (NumpadEqual) -> linux:117 (KEY_KPEQUAL) -> atset1:89 */
294
- "NumpadMultiply": 0x37,
295
- /* html:NumpadMultiply (NumpadMultiply) -> linux:55 (KEY_KPASTERISK) -> atset1:55 */
296
- "NumpadParenLeft": 0xe076,
297
- /* html:NumpadParenLeft (NumpadParenLeft) -> linux:179 (KEY_KPLEFTPAREN) -> atset1:57462 */
298
- "NumpadParenRight": 0xe07b,
299
- /* html:NumpadParenRight (NumpadParenRight) -> linux:180 (KEY_KPRIGHTPAREN) -> atset1:57467 */
300
- "NumpadSubtract": 0x4a,
301
- /* html:NumpadSubtract (NumpadSubtract) -> linux:74 (KEY_KPMINUS) -> atset1:74 */
302
- "Open": 0x64,
303
- /* html:Open (Open) -> linux:134 (KEY_OPEN) -> atset1:100 */
304
- "PageDown": 0xe051,
305
- /* html:PageDown (PageDown) -> linux:109 (KEY_PAGEDOWN) -> atset1:57425 */
306
- "PageUp": 0xe049,
307
- /* html:PageUp (PageUp) -> linux:104 (KEY_PAGEUP) -> atset1:57417 */
308
- "Paste": 0x65,
309
- /* html:Paste (Paste) -> linux:135 (KEY_PASTE) -> atset1:101 */
310
- "Pause": 0xe046,
311
- /* html:Pause (Pause) -> linux:119 (KEY_PAUSE) -> atset1:57414 */
312
- "Period": 0x34,
313
- /* html:Period (Period) -> linux:52 (KEY_DOT) -> atset1:52 */
314
- "Power": 0xe05e,
315
- /* html:Power (Power) -> linux:116 (KEY_POWER) -> atset1:57438 */
316
- "PrintScreen": 0x54,
317
- /* html:PrintScreen (PrintScreen) -> linux:99 (KEY_SYSRQ) -> atset1:84 */
318
- "Props": 0xe006,
319
- /* html:Props (Props) -> linux:130 (KEY_PROPS) -> atset1:57350 */
320
- "Quote": 0x28,
321
- /* html:Quote (Quote) -> linux:40 (KEY_APOSTROPHE) -> atset1:40 */
322
- "ScrollLock": 0x46,
323
- /* html:ScrollLock (ScrollLock) -> linux:70 (KEY_SCROLLLOCK) -> atset1:70 */
324
- "Semicolon": 0x27,
325
- /* html:Semicolon (Semicolon) -> linux:39 (KEY_SEMICOLON) -> atset1:39 */
326
- "ShiftLeft": 0x2a,
327
- /* html:ShiftLeft (ShiftLeft) -> linux:42 (KEY_LEFTSHIFT) -> atset1:42 */
328
- "ShiftRight": 0x36,
329
- /* html:ShiftRight (ShiftRight) -> linux:54 (KEY_RIGHTSHIFT) -> atset1:54 */
330
- "Slash": 0x35,
331
- /* html:Slash (Slash) -> linux:53 (KEY_SLASH) -> atset1:53 */
332
- "Sleep": 0xe05f,
333
- /* html:Sleep (Sleep) -> linux:142 (KEY_SLEEP) -> atset1:57439 */
334
- "Space": 0x39,
335
- /* html:Space (Space) -> linux:57 (KEY_SPACE) -> atset1:57 */
336
- "Suspend": 0xe025,
337
- /* html:Suspend (Suspend) -> linux:205 (KEY_SUSPEND) -> atset1:57381 */
338
- "Tab": 0xf,
339
- /* html:Tab (Tab) -> linux:15 (KEY_TAB) -> atset1:15 */
340
- "Undo": 0xe007,
341
- /* html:Undo (Undo) -> linux:131 (KEY_UNDO) -> atset1:57351 */
342
- "WakeUp": 0xe063 /* html:WakeUp (WakeUp) -> linux:143 (KEY_WAKEUP) -> atset1:57443 */
343
- };