MCPcopy Create free account
hub / github.com/arktypeio/arktype / onOpen

Function onOpen

ark/docs/components/shell/SearchDialog.tsx:53–54  ·  view source on GitHub ↗
(e: Event)

Source from the content-addressed store, hash-verified

51 element.showModal()
52 }
53 const onOpen = (e: Event) =>
54 open((e as CustomEvent<string | null>).detail ?? "")
55 const onKeyDown = (e: KeyboardEvent) => {
56 if (e.key.toLowerCase() === "k" && (e.metaKey || e.ctrlKey)) {
57 e.preventDefault()

Callers

nothing calls this directly

Calls 1

openFunction · 0.85

Tested by

no test coverage detected