@illgrenoble/webx-client 1.9.2 → 1.9.4

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 (286) hide show
  1. package/dist/input/GuacamoleKeyboard.js +118 -99
  2. package/dist/input/WebXKeyboard.d.ts +0 -16
  3. package/dist/input/WebXKeyboard.js +3 -27
  4. package/dist/input/WebXKeyboard.js.map +1 -1
  5. package/package.json +1 -1
  6. package/dist/display/WebXMaterialProvider.d.ts +0 -8
  7. package/dist/display/WebXMaterialProvider.js +0 -71
  8. package/dist/display/WebXMaterialProvider.js.map +0 -1
  9. package/dist/input/WebXNewKeyboard.d.ts +0 -62
  10. package/dist/input/WebXNewKeyboard.js +0 -94
  11. package/dist/input/WebXNewKeyboard.js.map +0 -1
  12. package/dist/input/keyboard/WebXKeyEvent.d.ts +0 -79
  13. package/dist/input/keyboard/WebXKeyEvent.js +0 -324
  14. package/dist/input/keyboard/WebXKeyEvent.js.map +0 -1
  15. package/dist/input/keyboard/WebXKeyPressEvent.d.ts +0 -30
  16. package/dist/input/keyboard/WebXKeyPressEvent.js +0 -44
  17. package/dist/input/keyboard/WebXKeyPressEvent.js.map +0 -1
  18. package/dist/input/keyboard/WebXKeyUpEvent.d.ts +0 -33
  19. package/dist/input/keyboard/WebXKeyUpEvent.js +0 -31
  20. package/dist/input/keyboard/WebXKeyUpEvent.js.map +0 -1
  21. package/dist/input/keyboard/WebXKeyboardModifierState.d.ts +0 -108
  22. package/dist/input/keyboard/WebXKeyboardModifierState.js +0 -148
  23. package/dist/input/keyboard/WebXKeyboardModifierState.js.map +0 -1
  24. package/dist/input/keyboard/WebXKeyboardUtils.d.ts +0 -25
  25. package/dist/input/keyboard/WebXKeyboardUtils.js +0 -63
  26. package/dist/input/keyboard/WebXKeyboardUtils.js.map +0 -1
  27. package/dist/input/keyboard/WebXKeydownEvent.d.ts +0 -46
  28. package/dist/input/keyboard/WebXKeydownEvent.js +0 -66
  29. package/dist/input/keyboard/WebXKeydownEvent.js.map +0 -1
  30. package/dist/input/keyboard/index.d.ts +0 -6
  31. package/dist/input/keyboard/index.js +0 -23
  32. package/dist/input/keyboard/index.js.map +0 -1
  33. package/dist/lib/GuacamoleKeyboard.js +0 -1290
  34. package/dist/lib/GuacamoleKeyboard.js.map +0 -1
  35. package/dist/message/WebXPollMessage.d.ts +0 -4
  36. package/dist/message/WebXPollMessage.js +0 -12
  37. package/dist/message/WebXPollMessage.js.map +0 -1
  38. package/dist/src/WebXClient.d.ts +0 -261
  39. package/dist/src/WebXClient.js +0 -571
  40. package/dist/src/WebXClient.js.map +0 -1
  41. package/dist/src/WebXEngine.d.ts +0 -4
  42. package/dist/src/WebXEngine.js +0 -7
  43. package/dist/src/WebXEngine.js.map +0 -1
  44. package/dist/src/display/WebXCursor.d.ts +0 -88
  45. package/dist/src/display/WebXCursor.js +0 -150
  46. package/dist/src/display/WebXCursor.js.map +0 -1
  47. package/dist/src/display/WebXCursorFactory.d.ts +0 -36
  48. package/dist/src/display/WebXCursorFactory.js +0 -59
  49. package/dist/src/display/WebXCursorFactory.js.map +0 -1
  50. package/dist/src/display/WebXDisplay.d.ts +0 -226
  51. package/dist/src/display/WebXDisplay.js +0 -424
  52. package/dist/src/display/WebXDisplay.js.map +0 -1
  53. package/dist/src/display/WebXMaterial.d.ts +0 -14
  54. package/dist/src/display/WebXMaterial.js +0 -140
  55. package/dist/src/display/WebXMaterial.js.map +0 -1
  56. package/dist/src/display/WebXSubImage.d.ts +0 -50
  57. package/dist/src/display/WebXSubImage.js +0 -26
  58. package/dist/src/display/WebXSubImage.js.map +0 -1
  59. package/dist/src/display/WebXTextureFactory.d.ts +0 -54
  60. package/dist/src/display/WebXTextureFactory.js +0 -160
  61. package/dist/src/display/WebXTextureFactory.js.map +0 -1
  62. package/dist/src/display/WebXWindow.d.ts +0 -241
  63. package/dist/src/display/WebXWindow.js +0 -438
  64. package/dist/src/display/WebXWindow.js.map +0 -1
  65. package/dist/src/display/WebXWindowProperties.d.ts +0 -44
  66. package/dist/src/display/WebXWindowProperties.js +0 -25
  67. package/dist/src/display/WebXWindowProperties.js.map +0 -1
  68. package/dist/src/display/index.d.ts +0 -7
  69. package/dist/src/display/index.js +0 -24
  70. package/dist/src/display/index.js.map +0 -1
  71. package/dist/src/index.d.ts +0 -7
  72. package/dist/src/index.js +0 -24
  73. package/dist/src/index.js.map +0 -1
  74. package/dist/src/input/WebXKeyboard.d.ts +0 -265
  75. package/dist/src/input/WebXKeyboard.js +0 -632
  76. package/dist/src/input/WebXKeyboard.js.map +0 -1
  77. package/dist/src/input/WebXMouse.d.ts +0 -125
  78. package/dist/src/input/WebXMouse.js +0 -231
  79. package/dist/src/input/WebXMouse.js.map +0 -1
  80. package/dist/src/input/index.d.ts +0 -4
  81. package/dist/src/input/index.js +0 -21
  82. package/dist/src/input/index.js.map +0 -1
  83. package/dist/src/input/keyboard/WebXKeyEvent.d.ts +0 -79
  84. package/dist/src/input/keyboard/WebXKeyEvent.js +0 -324
  85. package/dist/src/input/keyboard/WebXKeyEvent.js.map +0 -1
  86. package/dist/src/input/keyboard/WebXKeyPressEvent.d.ts +0 -30
  87. package/dist/src/input/keyboard/WebXKeyPressEvent.js +0 -44
  88. package/dist/src/input/keyboard/WebXKeyPressEvent.js.map +0 -1
  89. package/dist/src/input/keyboard/WebXKeyUpEvent.d.ts +0 -33
  90. package/dist/src/input/keyboard/WebXKeyUpEvent.js +0 -31
  91. package/dist/src/input/keyboard/WebXKeyUpEvent.js.map +0 -1
  92. package/dist/src/input/keyboard/WebXKeyboardModifierState.d.ts +0 -108
  93. package/dist/src/input/keyboard/WebXKeyboardModifierState.js +0 -148
  94. package/dist/src/input/keyboard/WebXKeyboardModifierState.js.map +0 -1
  95. package/dist/src/input/keyboard/WebXKeyboardUtils.d.ts +0 -25
  96. package/dist/src/input/keyboard/WebXKeyboardUtils.js +0 -63
  97. package/dist/src/input/keyboard/WebXKeyboardUtils.js.map +0 -1
  98. package/dist/src/input/keyboard/WebXKeydownEvent.d.ts +0 -46
  99. package/dist/src/input/keyboard/WebXKeydownEvent.js +0 -66
  100. package/dist/src/input/keyboard/WebXKeydownEvent.js.map +0 -1
  101. package/dist/src/input/keyboard/index.d.ts +0 -6
  102. package/dist/src/input/keyboard/index.js +0 -23
  103. package/dist/src/input/keyboard/index.js.map +0 -1
  104. package/dist/src/input/mouse/WebXMouseState.d.ts +0 -190
  105. package/dist/src/input/mouse/WebXMouseState.js +0 -217
  106. package/dist/src/input/mouse/WebXMouseState.js.map +0 -1
  107. package/dist/src/input/mouse/index.d.ts +0 -1
  108. package/dist/src/input/mouse/index.js +0 -18
  109. package/dist/src/input/mouse/index.js.map +0 -1
  110. package/dist/src/instruction/WebXClipboardInstruction.d.ts +0 -18
  111. package/dist/src/instruction/WebXClipboardInstruction.js +0 -23
  112. package/dist/src/instruction/WebXClipboardInstruction.js.map +0 -1
  113. package/dist/src/instruction/WebXConnectInstruction.d.ts +0 -19
  114. package/dist/src/instruction/WebXConnectInstruction.js +0 -24
  115. package/dist/src/instruction/WebXConnectInstruction.js.map +0 -1
  116. package/dist/src/instruction/WebXCursorImageInstruction.d.ts +0 -18
  117. package/dist/src/instruction/WebXCursorImageInstruction.js +0 -23
  118. package/dist/src/instruction/WebXCursorImageInstruction.js.map +0 -1
  119. package/dist/src/instruction/WebXDataAckInstruction.d.ts +0 -25
  120. package/dist/src/instruction/WebXDataAckInstruction.js +0 -26
  121. package/dist/src/instruction/WebXDataAckInstruction.js.map +0 -1
  122. package/dist/src/instruction/WebXImageInstruction.d.ts +0 -18
  123. package/dist/src/instruction/WebXImageInstruction.js +0 -23
  124. package/dist/src/instruction/WebXImageInstruction.js.map +0 -1
  125. package/dist/src/instruction/WebXInstruction.d.ts +0 -29
  126. package/dist/src/instruction/WebXInstruction.js +0 -28
  127. package/dist/src/instruction/WebXInstruction.js.map +0 -1
  128. package/dist/src/instruction/WebXInstructionResponse.d.ts +0 -66
  129. package/dist/src/instruction/WebXInstructionResponse.js +0 -78
  130. package/dist/src/instruction/WebXInstructionResponse.js.map +0 -1
  131. package/dist/src/instruction/WebXInstructionType.d.ts +0 -63
  132. package/dist/src/instruction/WebXInstructionType.js +0 -96
  133. package/dist/src/instruction/WebXInstructionType.js.map +0 -1
  134. package/dist/src/instruction/WebXKeyboardInstruction.d.ts +0 -23
  135. package/dist/src/instruction/WebXKeyboardInstruction.js +0 -25
  136. package/dist/src/instruction/WebXKeyboardInstruction.js.map +0 -1
  137. package/dist/src/instruction/WebXMouseInstruction.d.ts +0 -28
  138. package/dist/src/instruction/WebXMouseInstruction.js +0 -27
  139. package/dist/src/instruction/WebXMouseInstruction.js.map +0 -1
  140. package/dist/src/instruction/WebXPongInstruction.d.ts +0 -18
  141. package/dist/src/instruction/WebXPongInstruction.js +0 -23
  142. package/dist/src/instruction/WebXPongInstruction.js.map +0 -1
  143. package/dist/src/instruction/WebXQualityInstruction.d.ts +0 -19
  144. package/dist/src/instruction/WebXQualityInstruction.js +0 -24
  145. package/dist/src/instruction/WebXQualityInstruction.js.map +0 -1
  146. package/dist/src/instruction/WebXScreenInstruction.d.ts +0 -12
  147. package/dist/src/instruction/WebXScreenInstruction.js +0 -20
  148. package/dist/src/instruction/WebXScreenInstruction.js.map +0 -1
  149. package/dist/src/instruction/WebXShapeInstruction.d.ts +0 -18
  150. package/dist/src/instruction/WebXShapeInstruction.js +0 -23
  151. package/dist/src/instruction/WebXShapeInstruction.js.map +0 -1
  152. package/dist/src/instruction/WebXWindowsInstruction.d.ts +0 -13
  153. package/dist/src/instruction/WebXWindowsInstruction.js +0 -21
  154. package/dist/src/instruction/WebXWindowsInstruction.js.map +0 -1
  155. package/dist/src/instruction/index.d.ts +0 -15
  156. package/dist/src/instruction/index.js +0 -32
  157. package/dist/src/instruction/index.js.map +0 -1
  158. package/dist/src/message/WebXClipboardMessage.d.ts +0 -19
  159. package/dist/src/message/WebXClipboardMessage.js +0 -23
  160. package/dist/src/message/WebXClipboardMessage.js.map +0 -1
  161. package/dist/src/message/WebXConnectionMessage.d.ts +0 -12
  162. package/dist/src/message/WebXConnectionMessage.js +0 -20
  163. package/dist/src/message/WebXConnectionMessage.js.map +0 -1
  164. package/dist/src/message/WebXCursorImageMessage.d.ts +0 -46
  165. package/dist/src/message/WebXCursorImageMessage.js +0 -35
  166. package/dist/src/message/WebXCursorImageMessage.js.map +0 -1
  167. package/dist/src/message/WebXImageMessage.d.ts +0 -41
  168. package/dist/src/message/WebXImageMessage.js +0 -33
  169. package/dist/src/message/WebXImageMessage.js.map +0 -1
  170. package/dist/src/message/WebXMessage.d.ts +0 -24
  171. package/dist/src/message/WebXMessage.js +0 -23
  172. package/dist/src/message/WebXMessage.js.map +0 -1
  173. package/dist/src/message/WebXMessageType.d.ts +0 -59
  174. package/dist/src/message/WebXMessageType.js +0 -64
  175. package/dist/src/message/WebXMessageType.js.map +0 -1
  176. package/dist/src/message/WebXMouseMessage.d.ts +0 -30
  177. package/dist/src/message/WebXMouseMessage.js +0 -29
  178. package/dist/src/message/WebXMouseMessage.js.map +0 -1
  179. package/dist/src/message/WebXNopMessage.d.ts +0 -10
  180. package/dist/src/message/WebXNopMessage.js +0 -18
  181. package/dist/src/message/WebXNopMessage.js.map +0 -1
  182. package/dist/src/message/WebXPingMessage.d.ts +0 -13
  183. package/dist/src/message/WebXPingMessage.js +0 -21
  184. package/dist/src/message/WebXPingMessage.js.map +0 -1
  185. package/dist/src/message/WebXQualityMessage.d.ts +0 -39
  186. package/dist/src/message/WebXQualityMessage.js +0 -32
  187. package/dist/src/message/WebXQualityMessage.js.map +0 -1
  188. package/dist/src/message/WebXScreenMessage.d.ts +0 -37
  189. package/dist/src/message/WebXScreenMessage.js +0 -29
  190. package/dist/src/message/WebXScreenMessage.js.map +0 -1
  191. package/dist/src/message/WebXShapeMessage.d.ts +0 -31
  192. package/dist/src/message/WebXShapeMessage.js +0 -29
  193. package/dist/src/message/WebXShapeMessage.js.map +0 -1
  194. package/dist/src/message/WebXSubImagesMessage.d.ts +0 -31
  195. package/dist/src/message/WebXSubImagesMessage.js +0 -29
  196. package/dist/src/message/WebXSubImagesMessage.js.map +0 -1
  197. package/dist/src/message/WebXWindowsMessage.d.ts +0 -21
  198. package/dist/src/message/WebXWindowsMessage.js +0 -25
  199. package/dist/src/message/WebXWindowsMessage.js.map +0 -1
  200. package/dist/src/message/index.d.ts +0 -14
  201. package/dist/src/message/index.js +0 -31
  202. package/dist/src/message/index.js.map +0 -1
  203. package/dist/src/tracer/WebXDebugImageMessageHandler.d.ts +0 -48
  204. package/dist/src/tracer/WebXDebugImageMessageHandler.js +0 -102
  205. package/dist/src/tracer/WebXDebugImageMessageHandler.js.map +0 -1
  206. package/dist/src/tracer/WebXHandler.d.ts +0 -14
  207. package/dist/src/tracer/WebXHandler.js +0 -3
  208. package/dist/src/tracer/WebXHandler.js.map +0 -1
  209. package/dist/src/tracer/WebXInstructionHandler.d.ts +0 -21
  210. package/dist/src/tracer/WebXInstructionHandler.js +0 -13
  211. package/dist/src/tracer/WebXInstructionHandler.js.map +0 -1
  212. package/dist/src/tracer/WebXMessageHandler.d.ts +0 -21
  213. package/dist/src/tracer/WebXMessageHandler.js +0 -13
  214. package/dist/src/tracer/WebXMessageHandler.js.map +0 -1
  215. package/dist/src/tracer/WebXStatsHandler.d.ts +0 -23
  216. package/dist/src/tracer/WebXStatsHandler.js +0 -13
  217. package/dist/src/tracer/WebXStatsHandler.js.map +0 -1
  218. package/dist/src/tracer/index.d.ts +0 -5
  219. package/dist/src/tracer/index.js +0 -22
  220. package/dist/src/tracer/index.js.map +0 -1
  221. package/dist/src/transport/WebXBinarySerializer.d.ts +0 -31
  222. package/dist/src/transport/WebXBinarySerializer.js +0 -63
  223. package/dist/src/transport/WebXBinarySerializer.js.map +0 -1
  224. package/dist/src/transport/WebXInstructionBuffer.d.ts +0 -55
  225. package/dist/src/transport/WebXInstructionBuffer.js +0 -109
  226. package/dist/src/transport/WebXInstructionBuffer.js.map +0 -1
  227. package/dist/src/transport/WebXInstructionEncoder.d.ts +0 -181
  228. package/dist/src/transport/WebXInstructionEncoder.js +0 -294
  229. package/dist/src/transport/WebXInstructionEncoder.js.map +0 -1
  230. package/dist/src/transport/WebXMessageBuffer.d.ts +0 -80
  231. package/dist/src/transport/WebXMessageBuffer.js +0 -104
  232. package/dist/src/transport/WebXMessageBuffer.js.map +0 -1
  233. package/dist/src/transport/WebXMessageDecoder.d.ts +0 -108
  234. package/dist/src/transport/WebXMessageDecoder.js +0 -332
  235. package/dist/src/transport/WebXMessageDecoder.js.map +0 -1
  236. package/dist/src/transport/index.d.ts +0 -5
  237. package/dist/src/transport/index.js +0 -22
  238. package/dist/src/transport/index.js.map +0 -1
  239. package/dist/src/tunnel/WebXTunnel.d.ts +0 -93
  240. package/dist/src/tunnel/WebXTunnel.js +0 -156
  241. package/dist/src/tunnel/WebXTunnel.js.map +0 -1
  242. package/dist/src/tunnel/WebXWebSocketTunnel.d.ts +0 -40
  243. package/dist/src/tunnel/WebXWebSocketTunnel.js +0 -88
  244. package/dist/src/tunnel/WebXWebSocketTunnel.js.map +0 -1
  245. package/dist/src/tunnel/index.d.ts +0 -2
  246. package/dist/src/tunnel/index.js +0 -19
  247. package/dist/src/tunnel/index.js.map +0 -1
  248. package/dist/src/utils/WebXColorGenerator.d.ts +0 -24
  249. package/dist/src/utils/WebXColorGenerator.js +0 -46
  250. package/dist/src/utils/WebXColorGenerator.js.map +0 -1
  251. package/dist/src/utils/WebXVersion.d.ts +0 -34
  252. package/dist/src/utils/WebXVersion.js +0 -25
  253. package/dist/src/utils/WebXVersion.js.map +0 -1
  254. package/dist/src/utils/index.d.ts +0 -2
  255. package/dist/src/utils/index.js +0 -19
  256. package/dist/src/utils/index.js.map +0 -1
  257. package/dist/tracer/DemoVisualMessageHandler.d.ts +0 -15
  258. package/dist/tracer/DemoVisualMessageHandler.js +0 -55
  259. package/dist/tracer/DemoVisualMessageHandler.js.map +0 -1
  260. package/dist/tracer/WebXVisualMessageHandler.d.ts +0 -15
  261. package/dist/tracer/WebXVisualMessageHandler.js +0 -55
  262. package/dist/tracer/WebXVisualMessageHandler.js.map +0 -1
  263. package/dist/tunnel/WebXDefaultQoSHandler.d.ts +0 -16
  264. package/dist/tunnel/WebXDefaultQoSHandler.js +0 -57
  265. package/dist/tunnel/WebXDefaultQoSHandler.js.map +0 -1
  266. package/dist/tunnel/WebXQoSHandler.d.ts +0 -6
  267. package/dist/tunnel/WebXQoSHandler.js +0 -7
  268. package/dist/tunnel/WebXQoSHandler.js.map +0 -1
  269. package/dist/tunnel/WebXSocketIOTunnel.d.ts +0 -15
  270. package/dist/tunnel/WebXSocketIOTunnel.js +0 -41
  271. package/dist/tunnel/WebXSocketIOTunnel.js.map +0 -1
  272. package/dist/utils/ColorGenerator.d.ts +0 -24
  273. package/dist/utils/ColorGenerator.js +0 -46
  274. package/dist/utils/ColorGenerator.js.map +0 -1
  275. package/dist/utils/Config.d.ts +0 -4
  276. package/dist/utils/Config.js +0 -10
  277. package/dist/utils/Config.js.map +0 -1
  278. package/dist/utils/WebXAsyncExec.d.ts +0 -5
  279. package/dist/utils/WebXAsyncExec.js +0 -18
  280. package/dist/utils/WebXAsyncExec.js.map +0 -1
  281. package/dist/utils/WebXColourGenerator.d.ts +0 -5
  282. package/dist/utils/WebXColourGenerator.js +0 -27
  283. package/dist/utils/WebXColourGenerator.js.map +0 -1
  284. package/dist/utils/WebXFileSize.d.ts +0 -3
  285. package/dist/utils/WebXFileSize.js +0 -14
  286. package/dist/utils/WebXFileSize.js.map +0 -1
@@ -1,148 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WebXKeyboardModifierState = void 0;
4
- /**
5
- * Represents the state of keyboard modifiers (e.g., Shift, Ctrl, Alt).
6
- *
7
- * This class tracks the state of each modifier key and provides methods
8
- * to update and retrieve the state.
9
- */
10
- class WebXKeyboardModifierState {
11
- /**
12
- * Gets whether the Shift key is pressed.
13
- *
14
- * @returns True if the Shift key is pressed, false otherwise.
15
- */
16
- get shift() {
17
- return this._shift;
18
- }
19
- /**
20
- * Sets whether the Shift key is pressed.
21
- *
22
- * @param value True to indicate the Shift key is pressed, false otherwise.
23
- */
24
- set shift(value) {
25
- this._shift = value;
26
- }
27
- /**
28
- * Gets whether the Ctrl key is pressed.
29
- *
30
- * @returns True if the Ctrl key is pressed, false otherwise.
31
- */
32
- get ctrl() {
33
- return this._ctrl;
34
- }
35
- /**
36
- * Sets whether the Ctrl key is pressed.
37
- *
38
- * @param value True to indicate the Ctrl key is pressed, false otherwise.
39
- */
40
- set ctrl(value) {
41
- this._ctrl = value;
42
- }
43
- /**
44
- * Gets whether the Alt key is pressed.
45
- *
46
- * @returns True if the Alt key is pressed, false otherwise.
47
- */
48
- get alt() {
49
- return this._alt;
50
- }
51
- /**
52
- * Sets whether the Alt key is pressed.
53
- *
54
- * @param value True to indicate the Alt key is pressed, false otherwise.
55
- */
56
- set alt(value) {
57
- this._alt = value;
58
- }
59
- /**
60
- * Gets whether the Meta key (e.g., Command on macOS) is pressed.
61
- *
62
- * @returns True if the Meta key is pressed, false otherwise.
63
- */
64
- get meta() {
65
- return this._meta;
66
- }
67
- /**
68
- * Sets whether the Meta key (e.g., Command on macOS) is pressed.
69
- *
70
- * @param value True to indicate the Meta key is pressed, false otherwise.
71
- */
72
- set meta(value) {
73
- this._meta = value;
74
- }
75
- /**
76
- * Gets whether the Hyper key is pressed.
77
- *
78
- * @returns True if the Hyper key is pressed, false otherwise.
79
- */
80
- get hyper() {
81
- return this._hyper;
82
- }
83
- /**
84
- * Sets whether the Hyper key is pressed.
85
- *
86
- * @param value True to indicate the Hyper key is pressed, false otherwise.
87
- */
88
- set hyper(value) {
89
- this._hyper = value;
90
- }
91
- /**
92
- * Creates a new instance of WebXKeyboardModifierState.
93
- *
94
- * @param state Optional initial state of the keyboard modifiers.
95
- * Contains the state of Shift, Ctrl, Alt, Meta, and Hyper keys.
96
- */
97
- constructor(state) {
98
- /**
99
- * Whether the Shift key is pressed.
100
- */
101
- this._shift = false;
102
- /**
103
- * Whether the Ctrl key is pressed.
104
- */
105
- this._ctrl = false;
106
- /**
107
- * Whether the Alt key is pressed.
108
- */
109
- this._alt = false;
110
- /**
111
- * Whether the Meta key (e.g., Command on macOS) is pressed.
112
- */
113
- this._meta = false;
114
- /**
115
- * Whether the Hyper key is pressed.
116
- */
117
- this._hyper = false;
118
- if (state) {
119
- const { shift, ctrl, alt, meta, hyper } = state;
120
- this._shift = shift;
121
- this._ctrl = ctrl;
122
- this._alt = alt;
123
- this._meta = meta;
124
- this._hyper = hyper;
125
- }
126
- }
127
- /**
128
- * Updates the modifier state based on a keyboard event.
129
- *
130
- * @param event The keyboard event to process.
131
- * @returns The updated modifier state.
132
- */
133
- fromKeyboardEvent(event) {
134
- this._shift = event.shiftKey;
135
- this._ctrl = event.ctrlKey;
136
- this._alt = event.altKey;
137
- this._meta = event.metaKey;
138
- if (event.getModifierState) {
139
- this.hyper = event.getModifierState('OS')
140
- || event.getModifierState('Super')
141
- || event.getModifierState('Hyper')
142
- || event.getModifierState('Win');
143
- }
144
- return this;
145
- }
146
- }
147
- exports.WebXKeyboardModifierState = WebXKeyboardModifierState;
148
- //# sourceMappingURL=WebXKeyboardModifierState.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WebXKeyboardModifierState.js","sourceRoot":"","sources":["../../../src/input/keyboard/WebXKeyboardModifierState.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,MAAa,yBAAyB;IA0BpC;;;;OAIG;IACH,IAAW,KAAK;QACd,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED;;;;OAIG;IACH,IAAW,KAAK,CAAC,KAAc;QAC7B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;IACtB,CAAC;IAED;;;;OAIG;IACH,IAAW,IAAI;QACb,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED;;;;OAIG;IACH,IAAW,IAAI,CAAC,KAAc;QAC5B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED;;;;OAIG;IACH,IAAW,GAAG;QACZ,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED;;;;OAIG;IACH,IAAW,GAAG,CAAC,KAAc;QAC3B,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;IACpB,CAAC;IAED;;;;OAIG;IACH,IAAW,IAAI;QACb,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED;;;;OAIG;IACH,IAAW,IAAI,CAAC,KAAc;QAC5B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED;;;;OAIG;IACH,IAAW,KAAK;QACd,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED;;;;OAIG;IACH,IAAW,KAAK,CAAC,KAAc;QAC7B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;IACtB,CAAC;IAED;;;;;OAKG;IACH,YAAY,KAAsF;QAzHlG;;WAEG;QACK,WAAM,GAAY,KAAK,CAAC;QAEhC;;WAEG;QACK,UAAK,GAAY,KAAK,CAAC;QAE/B;;WAEG;QACK,SAAI,GAAY,KAAK,CAAC;QAE9B;;WAEG;QACK,UAAK,GAAY,KAAK,CAAC;QAE/B;;WAEG;QACK,WAAM,GAAY,KAAK,CAAC;QAmG9B,IAAI,KAAK,EAAE,CAAC;YACV,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;YAChD,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;YACpB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;YAClB,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;YAChB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;YAClB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACtB,CAAC;IACH,CAAC;IAED;;;;;OAKG;IACI,iBAAiB,CAAC,KAAoB;QAC3C,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC7B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC;QAC3B,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,MAAM,CAAC;QACzB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC;QAE3B,IAAI,KAAK,CAAC,gBAAgB,EAAE,CAAC;YAC3B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC;mBACpC,KAAK,CAAC,gBAAgB,CAAC,OAAO,CAAC;mBAC/B,KAAK,CAAC,gBAAgB,CAAC,OAAO,CAAC;mBAC/B,KAAK,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;QACrC,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AA1JD,8DA0JC"}
@@ -1,25 +0,0 @@
1
- /**
2
- * Utility class for keyboard-related operations.
3
- *
4
- * This class provides methods to map characters to keysyms and determine
5
- * whether a key is repeatable.
6
- */
7
- export declare class WebXKeyboardUtils {
8
- /**
9
- * Maps a Unicode character code to its corresponding X11 keysym.
10
- *
11
- * @param codepoint The Unicode character code.
12
- * @returns The corresponding X11 keysym.
13
- */
14
- static keysymFromCharCode(codepoint: number): number;
15
- static NON_REPEATABLE_KEYS: Array<number>;
16
- /**
17
- * Determines whether a key is repeatable.
18
- *
19
- * Modifier keys (e.g., Shift, Ctrl, Alt) are not repeatable.
20
- *
21
- * @param keysym The keysym of the key to check.
22
- * @returns True if the key is repeatable, false otherwise.
23
- */
24
- static isKeyRepeatable(keySymbol: number): boolean;
25
- }
@@ -1,63 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WebXKeyboardUtils = void 0;
4
- /**
5
- * Utility class for keyboard-related operations.
6
- *
7
- * This class provides methods to map characters to keysyms and determine
8
- * whether a key is repeatable.
9
- */
10
- class WebXKeyboardUtils {
11
- /**
12
- * Maps a Unicode character code to its corresponding X11 keysym.
13
- *
14
- * @param codepoint The Unicode character code.
15
- * @returns The corresponding X11 keysym.
16
- */
17
- static keysymFromCharCode(codepoint) {
18
- const isControlCharacter = (char) => {
19
- return char <= 0x1f || (char >= 0x7f && char <= 0x9f);
20
- };
21
- // Keysyms for control characters
22
- if (isControlCharacter(codepoint)) {
23
- return 0xff00 | codepoint;
24
- }
25
- // Keysyms for ASCII chars
26
- if (codepoint >= 0x0000 && codepoint <= 0x00ff) {
27
- return codepoint;
28
- }
29
- // Keysyms for Unicode
30
- if (codepoint >= 0x0100 && codepoint <= 0x10ffff) {
31
- // return 0x01000000 | codepoint;
32
- return codepoint;
33
- }
34
- return null;
35
- }
36
- /**
37
- * Determines whether a key is repeatable.
38
- *
39
- * Modifier keys (e.g., Shift, Ctrl, Alt) are not repeatable.
40
- *
41
- * @param keysym The keysym of the key to check.
42
- * @returns True if the key is repeatable, false otherwise.
43
- */
44
- static isKeyRepeatable(keySymbol) {
45
- return !WebXKeyboardUtils.NON_REPEATABLE_KEYS.includes(keySymbol);
46
- }
47
- }
48
- exports.WebXKeyboardUtils = WebXKeyboardUtils;
49
- WebXKeyboardUtils.NON_REPEATABLE_KEYS = [
50
- 0xfe03, // ISO Level 3 Shift (AltGr)
51
- 0xffe1, // Left shift
52
- 0xffe2, // Right shift
53
- 0xffe3, // Left ctrl
54
- 0xffe4, // Right ctrl
55
- 0xffe5, // Caps Lock
56
- 0xffe7, // Left meta
57
- 0xffe8, // Right meta
58
- 0xffe9, // Left alt
59
- 0xffea, // Right alt
60
- 0xffeb, // Left hyper
61
- 0xffec // Right hyper
62
- ];
63
- //# sourceMappingURL=WebXKeyboardUtils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WebXKeyboardUtils.js","sourceRoot":"","sources":["../../../src/input/keyboard/WebXKeyboardUtils.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,MAAa,iBAAiB;IAC5B;;;;;OAKG;IACI,MAAM,CAAC,kBAAkB,CAAC,SAAiB;QAChD,MAAM,kBAAkB,GAAG,CAAC,IAAY,EAAE,EAAE;YAC1C,OAAO,IAAI,IAAI,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,CAAC,CAAC;QACxD,CAAC,CAAC;QAEF,iCAAiC;QACjC,IAAI,kBAAkB,CAAC,SAAS,CAAC,EAAE,CAAC;YAClC,OAAO,MAAM,GAAG,SAAS,CAAC;QAC5B,CAAC;QAED,0BAA0B;QAC1B,IAAI,SAAS,IAAI,MAAM,IAAI,SAAS,IAAI,MAAM,EAAE,CAAC;YAC/C,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,sBAAsB;QACtB,IAAI,SAAS,IAAI,MAAM,IAAI,SAAS,IAAI,QAAQ,EAAE,CAAC;YACjD,iCAAiC;YACjC,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;IAiBD;;;;;;;OAOG;IACI,MAAM,CAAC,eAAe,CAAC,SAAiB;QAC7C,OAAO,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;IACpE,CAAC;;AAxDH,8CAyDC;AA1Be,qCAAmB,GAAkB;IACjD,MAAM,EAAE,4BAA4B;IACpC,MAAM,EAAE,aAAa;IACrB,MAAM,EAAE,cAAc;IACtB,MAAM,EAAE,YAAY;IACpB,MAAM,EAAE,aAAa;IACrB,MAAM,EAAE,YAAY;IACpB,MAAM,EAAE,YAAY;IACpB,MAAM,EAAE,aAAa;IACrB,MAAM,EAAE,WAAW;IACnB,MAAM,EAAE,YAAY;IACpB,MAAM,EAAE,aAAa;IACrB,MAAM,CAAC,cAAc;CACtB,CAAC"}
@@ -1,46 +0,0 @@
1
- import { WebXKeyEvent } from './WebXKeyEvent';
2
- /**
3
- * Represents a keydown event in the WebX client.
4
- *
5
- * This event is triggered when a key is pressed down.
6
- */
7
- export declare class WebXKeydownEvent extends WebXKeyEvent {
8
- /**
9
- * Indicates whether the keyup event is reliable for this key.
10
- */
11
- readonly keyupReliable: boolean;
12
- /**
13
- * The JavaScript key code of the key pressed.
14
- */
15
- readonly keyCode: number;
16
- /**
17
- * The legacy DOM3 "keyIdentifier" of the key pressed.
18
- */
19
- readonly keyIdentifier: string;
20
- /**
21
- * The standard name of the key pressed.
22
- */
23
- readonly key: string;
24
- /**
25
- * The location on the keyboard corresponding to the key pressed.
26
- */
27
- readonly location: number;
28
- /**
29
- * Information related to the pressing of a key, which need not be a key
30
- * associated with a printable character. The presence or absence of any
31
- * information within this object is browser-dependent.
32
- *
33
- * @constructor
34
- * @augments WebXKeyEvent
35
- * @param {number} keyCode The JavaScript key code of the key pressed.
36
- * @param {string} keyIdentifier The legacy DOM3 "keyIdentifier" of the key
37
- * pressed, as defined at:
38
- * http://www.w3.org/TR/2009/WD-DOM-Level-3-Events-20090908/#events-Events-KeyboardEvent
39
- * @param {string} key The standard name of the key pressed, as defined at:
40
- * http://www.w3.org/TR/DOM-Level-3-Events/#events-KeyboardEvent
41
- * @param {number} location The location on the keyboard corresponding to
42
- * the key pressed, as defined at:
43
- * http://www.w3.org/TR/DOM-Level-3-Events/#events-KeyboardEvent
44
- */
45
- constructor(keyCode: number, keyIdentifier: string, key: string, location: number);
46
- }
@@ -1,66 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WebXKeydownEvent = void 0;
4
- const WebXKeyEvent_1 = require("./WebXKeyEvent");
5
- const WebXKeyboard_1 = require("../WebXKeyboard");
6
- /**
7
- * Represents a keydown event in the WebX client.
8
- *
9
- * This event is triggered when a key is pressed down.
10
- */
11
- class WebXKeydownEvent extends WebXKeyEvent_1.WebXKeyEvent {
12
- /**
13
- * Information related to the pressing of a key, which need not be a key
14
- * associated with a printable character. The presence or absence of any
15
- * information within this object is browser-dependent.
16
- *
17
- * @constructor
18
- * @augments WebXKeyEvent
19
- * @param {number} keyCode The JavaScript key code of the key pressed.
20
- * @param {string} keyIdentifier The legacy DOM3 "keyIdentifier" of the key
21
- * pressed, as defined at:
22
- * http://www.w3.org/TR/2009/WD-DOM-Level-3-Events-20090908/#events-Events-KeyboardEvent
23
- * @param {string} key The standard name of the key pressed, as defined at:
24
- * http://www.w3.org/TR/DOM-Level-3-Events/#events-KeyboardEvent
25
- * @param {number} location The location on the keyboard corresponding to
26
- * the key pressed, as defined at:
27
- * http://www.w3.org/TR/DOM-Level-3-Events/#events-KeyboardEvent
28
- */
29
- constructor(keyCode, keyIdentifier, key, location) {
30
- super();
31
- this.keyCode = keyCode;
32
- this.keyIdentifier = keyIdentifier;
33
- this.key = key;
34
- this.location = location;
35
- this.keyupReliable = !WebXKeyboard_1.WebXKeyboard.quirks.keyupUnreliable;
36
- this._keysym = this.keysymFromKeyIdentifier(key, location) || this.keysymFromKeycode(keyCode, location);
37
- if (this._keysym && !this.isPrintable()) {
38
- this._reliable = true;
39
- }
40
- if (!this._keysym && this.keyIdentifierSane(keyCode, keyIdentifier)) {
41
- this._keysym = this.keysymFromKeyIdentifier(keyIdentifier, location, WebXKeyboard_1.WebXKeyboard.modifiers.shift);
42
- }
43
- // If a key is pressed while meta is held down, the keyup will
44
- // never be sent in Chrome (bug #108404)
45
- if (WebXKeyboard_1.WebXKeyboard.modifiers.meta && this._keysym !== 0xFFE7 && this._keysym !== 0xFFE8) {
46
- this.keyupReliable = false;
47
- }
48
- else if (this.keysym === 0xFFE5 && WebXKeyboard_1.WebXKeyboard.quirks.capsLockKeyupUnreliable) {
49
- this.keyupReliable = false;
50
- }
51
- // Determine whether default action for Ctrl+combinations must be prevented
52
- const preventAlt = !WebXKeyboard_1.WebXKeyboard.modifiers.ctrl && !WebXKeyboard_1.WebXKeyboard.quirks.altIsTypableOnly;
53
- // Determine whether default action for Ctrl+combinations must be prevented
54
- const preventCtrl = !WebXKeyboard_1.WebXKeyboard.modifiers.alt;
55
- // We must rely on the (potentially buggy) keyIdentifier if preventing
56
- // the default action is important
57
- if ((preventCtrl && WebXKeyboard_1.WebXKeyboard.modifiers.ctrl)
58
- || (preventAlt && WebXKeyboard_1.WebXKeyboard.modifiers.alt)
59
- || WebXKeyboard_1.WebXKeyboard.modifiers.meta
60
- || WebXKeyboard_1.WebXKeyboard.modifiers.hyper) {
61
- this.reliable = true;
62
- }
63
- }
64
- }
65
- exports.WebXKeydownEvent = WebXKeydownEvent;
66
- //# sourceMappingURL=WebXKeydownEvent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WebXKeydownEvent.js","sourceRoot":"","sources":["../../../src/input/keyboard/WebXKeydownEvent.ts"],"names":[],"mappings":";;;AAAA,iDAA8C;AAC9C,kDAA+C;AAE/C;;;;GAIG;AACH,MAAa,gBAAiB,SAAQ,2BAAY;IA2BhD;;;;;;;;;;;;;;;;OAgBG;IACH,YAAY,OAAe,EAAE,aAAqB,EAAE,GAAW,EAAE,QAAgB;QAC/E,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,aAAa,GAAG,CAAC,2BAAY,CAAC,MAAM,CAAC,eAAe,CAAC;QAC1D,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,uBAAuB,CAAC,GAAG,EAAE,QAAQ,CAAC,IAAI,IAAI,CAAC,iBAAiB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QAExG,IAAI,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC;YACxC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACxB,CAAC;QAED,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,iBAAiB,CAAC,OAAO,EAAE,aAAa,CAAC,EAAE,CAAC;YACpE,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,uBAAuB,CAAC,aAAa,EAAE,QAAQ,EAAE,2BAAY,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACrG,CAAC;QAED,8DAA8D;QAC9D,wCAAwC;QACxC,IAAI,2BAAY,CAAC,SAAS,CAAC,IAAI,IAAI,IAAI,CAAC,OAAO,KAAK,MAAM,IAAI,IAAI,CAAC,OAAO,KAAK,MAAM,EAAE,CAAC;YACtF,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC7B,CAAC;aAAM,IAAI,IAAI,CAAC,MAAM,KAAK,MAAM,IAAI,2BAAY,CAAC,MAAM,CAAC,uBAAuB,EAAE,CAAC;YACjF,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC7B,CAAC;QAED,2EAA2E;QAC3E,MAAM,UAAU,GAAG,CAAC,2BAAY,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,2BAAY,CAAC,MAAM,CAAC,gBAAgB,CAAC;QAEzF,2EAA2E;QAC3E,MAAM,WAAW,GAAG,CAAC,2BAAY,CAAC,SAAS,CAAC,GAAG,CAAC;QAEhD,sEAAsE;QACtE,kCAAkC;QAClC,IAAI,CAAC,WAAW,IAAI,2BAAY,CAAC,SAAS,CAAC,IAAI,CAAC;eAC3C,CAAC,UAAU,IAAI,2BAAY,CAAC,SAAS,CAAC,GAAG,CAAC;eAC1C,2BAAY,CAAC,SAAS,CAAC,IAAI;eAC3B,2BAAY,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC;YAClC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACvB,CAAC;IAEH,CAAC;CACF;AArFD,4CAqFC"}
@@ -1,6 +0,0 @@
1
- export * from './WebXKeyEvent';
2
- export * from './WebXKeyboardModifierState';
3
- export * from './WebXKeyPressEvent';
4
- export * from './WebXKeydownEvent';
5
- export * from './WebXKeyboardUtils';
6
- export * from './WebXKeyUpEvent';
@@ -1,23 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./WebXKeyEvent"), exports);
18
- __exportStar(require("./WebXKeyboardModifierState"), exports);
19
- __exportStar(require("./WebXKeyPressEvent"), exports);
20
- __exportStar(require("./WebXKeydownEvent"), exports);
21
- __exportStar(require("./WebXKeyboardUtils"), exports);
22
- __exportStar(require("./WebXKeyUpEvent"), exports);
23
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/input/keyboard/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,8DAA4C;AAC5C,sDAAoC;AACpC,qDAAmC;AACnC,sDAAoC;AACpC,mDAAiC"}