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

Function onKey

graph-ui/src/app/AtlasChrome.tsx:590–595  ·  view source on GitHub ↗
(event: globalThis.KeyboardEvent)

Source from the content-addressed store, hash-verified

588 requestAnimationFrame(() => window.dispatchEvent(new Event('cbm:focus-galaxy-search')));
589 };
590 const onKey = (event: globalThis.KeyboardEvent) => {
591 if ((event.metaKey || event.ctrlKey) && event.key.toLowerCase() === 'k') {
592 event.preventDefault();
593 focusGalaxySearch();
594 }
595 };
596 window.addEventListener(OPEN_COMMAND_SEARCH_EVENT, focusGalaxySearch);
597 window.addEventListener('keydown', onKey);
598 return () => {

Callers

nothing calls this directly

Calls 1

focusGalaxySearchFunction · 0.85

Tested by

no test coverage detected