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

Method constructor

src/ink/focus.ts:21–25  ·  view source on GitHub ↗
(
    dispatchFocusEvent: (target: DOMElement, event: FocusEvent) => boolean,
  )

Source from the content-addressed store, hash-verified

19 private focusStack: DOMElement[] = []
20
21 constructor(
22 dispatchFocusEvent: (target: DOMElement, event: FocusEvent) => boolean,
23 ) {
24 this.dispatchFocusEvent = dispatchFocusEvent
25 }
26
27 focus(node: DOMElement): void {
28 if (node === this.activeElement) return

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected