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

Function onKeyDown

graph-ui/src/help/HelpOverlay.tsx:77–79  ·  view source on GitHub ↗
(event: globalThis.KeyboardEvent)

Source from the content-addressed store, hash-verified

75
76 useEffect(() => {
77 const onKeyDown = (event: globalThis.KeyboardEvent): void => {
78 setReading(readKeyEvent(event, event.target as Element | null, WIRED_MENU_SHORTCUTS));
79 };
80 window.addEventListener('keydown', onKeyDown, KEY_LISTENER_OPTIONS);
81 return () => window.removeEventListener('keydown', onKeyDown, KEY_LISTENER_OPTIONS);
82 }, []);

Callers

nothing calls this directly

Calls 2

readKeyEventFunction · 0.90
setReadingFunction · 0.85

Tested by

no test coverage detected