(delta: 1 | -1)
| 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 |
no test coverage detected