* Map KeyboardEvent.code to USB HID Key enum value * @param code - KeyboardEvent.code value * @returns Key enum value or null if unmapped
(code: string)
| 254 | * @returns Key enum value or null if unmapped |
| 255 | */ |
| 256 | private mapKeyCode(code: string): Key | null { |
| 257 | return KEY_MAP[code] ?? null; |
| 258 | } |
| 259 | |
| 260 | /** |
| 261 | * Extract modifier flags from KeyboardEvent |