MCPcopy
hub / github.com/codeaashu/claude-code / step

Function step

src/components/design-system/FuzzyPicker.tsx:105–107  ·  view source on GitHub ↗
(delta: 1 | -1)

Source from the content-addressed store, hash-verified

103 // below that. Compact mode drops shift+tab and shortens labels.
104 const compact = columns < 120;
105 const step = (delta: 1 | -1) => {
106 setFocusedIndex(i => clamp(i + delta, 0, items.length - 1));
107 };
108
109 // onKeyDown fires after useSearchInput's useInput, so onExit must be a
110 // no-op — return/downArrow are handled by handleKeyDown below. onCancel

Callers 1

handleKeyDownFunction · 0.70

Calls 1

clampFunction · 0.85

Tested by

no test coverage detected