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

Function adaptKeyboardEvent

web/lib/ink-compat/Box.tsx:82–92  ·  view source on GitHub ↗
(e: ReactKeyboardEvent<HTMLDivElement>)

Source from the content-addressed store, hash-verified

80}
81
82function adaptKeyboardEvent(e: ReactKeyboardEvent<HTMLDivElement>): WebKeyboardEvent {
83 return {
84 key: e.key,
85 ctrl: e.ctrlKey,
86 shift: e.shiftKey,
87 meta: e.metaKey || e.altKey,
88 stopImmediatePropagation() {
89 e.stopPropagation()
90 },
91 }
92}
93
94// ---------------------------------------------------------------------------
95// Component

Callers 1

Box.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected