MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / handleKeyDown

Function handleKeyDown

apps/web/hooks/keyboard.tsx:20–24  ·  view source on GitHub ↗
(event: KeyboardEvent)

Source from the content-addressed store, hash-verified

18 };
19
20 const handleKeyDown = (event: KeyboardEvent) => {
21 onKeyDown?.(event);
22 setShiftPressed(event.shiftKey);
23 return true;
24 };
25
26 useEffect(() => {
27 document.addEventListener('keyup', handleKeyUp);

Callers

nothing calls this directly

Calls 1

onKeyDownFunction · 0.85

Tested by

no test coverage detected