MCPcopy Create free account
hub / github.com/coder/ghostty-web / mapKeyCode

Method mapKeyCode

lib/input-handler.ts:256–258  ·  view source on GitHub ↗

* Map KeyboardEvent.code to USB HID Key enum value * @param code - KeyboardEvent.code value * @returns Key enum value or null if unmapped

(code: string)

Source from the content-addressed store, hash-verified

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

Callers 1

handleKeyDownMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected