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

Function onKeyDown

graph-ui/src/layout/Splitter.tsx:127–136  ·  view source on GitHub ↗
(event: ReactKeyboardEvent<HTMLDivElement>)

Source from the content-addressed store, hash-verified

125 };
126
127 const onKeyDown = (event: ReactKeyboardEvent<HTMLDivElement>): void => {
128 const forward = props.orientation === 'vertical' ? 'ArrowRight' : 'ArrowDown';
129 const backward = props.orientation === 'vertical' ? 'ArrowLeft' : 'ArrowUp';
130 if (event.key !== forward && event.key !== backward) {
131 return;
132 }
133 event.preventDefault();
134 const step = event.shiftKey ? LAYOUT_BIG_STEP : LAYOUT_STEP;
135 props.onChange(clamped(props.value + sign * (event.key === forward ? step : -step)));
136 };
137
138 return (
139 <div

Callers

nothing calls this directly

Calls 1

clampedFunction · 0.85

Tested by

no test coverage detected