MCPcopy
hub / github.com/anomalyco/opencode / handleKeyDown

Function handleKeyDown

packages/console/app/src/component/header.tsx:59–63  ·  view source on GitHub ↗
(event: KeyboardEvent)

Source from the content-addressed store, hash-verified

57 }
58
59 const handleKeyDown = (event: KeyboardEvent) => {
60 if (event.key === "Escape") {
61 setStore("contextMenuOpen", false)
62 }
63 }
64
65 if (store.contextMenuOpen) {
66 document.addEventListener("click", handleClickOutside)

Callers

nothing calls this directly

Calls 1

setStoreFunction · 0.85

Tested by

no test coverage detected