MCPcopy Create free account
hub / github.com/codeaashu/claude-code / constructor

Method constructor

src/ink/events/keyboard-event.ts:20–29  ·  view source on GitHub ↗
(parsedKey: ParsedKey)

Source from the content-addressed store, hash-verified

18 readonly fn: boolean
19
20 constructor(parsedKey: ParsedKey) {
21 super('keydown', { bubbles: true, cancelable: true })
22
23 this.key = keyFromParsed(parsedKey)
24 this.ctrl = parsedKey.ctrl
25 this.shift = parsedKey.shift
26 this.meta = parsedKey.meta || parsedKey.option
27 this.superKey = parsedKey.super
28 this.fn = parsedKey.fn
29 }
30}
31
32function keyFromParsed(parsed: ParsedKey): string {

Callers

nothing calls this directly

Calls 1

keyFromParsedFunction · 0.85

Tested by

no test coverage detected