MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / onKey

Function onKey

ui/src/components/ContextMenu.tsx:60–62  ·  view source on GitHub ↗
(e: KeyboardEvent)

Source from the content-addressed store, hash-verified

58 }
59 }
60 const onKey = (e: KeyboardEvent) => {
61 if (e.key === 'Escape') onClose()
62 }
63 document.addEventListener('mousedown', onMouseDown)
64 document.addEventListener('keydown', onKey)
65 return () => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected