MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / closeOnEscape

Function closeOnEscape

graph-ui/src/galaxy/ScopePathControls.tsx:11–15  ·  view source on GitHub ↗
(event: KeyboardEvent<HTMLDetailsElement>)

Source from the content-addressed store, hash-verified

9const PICKER_LIMIT = 40;
10
11function closeOnEscape(event: KeyboardEvent<HTMLDetailsElement>) {
12 if (event.key !== 'Escape') return;
13 event.stopPropagation(); event.currentTarget.open = false;
14 event.currentTarget.querySelector('summary')?.focus();
15}
16
17/** A searchable list of the nodes already loaded in this scope; nothing is fetched. */
18export function PathPicker({ nodes, onPick }: { nodes: readonly GraphNode[]; onPick: (node: GraphNode) => void }) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected