MCPcopy Create free account
hub / github.com/codeaashu/claude-code / moveSelection

Function moveSelection

src/components/Settings/Config.tsx:1368–1373  ·  view source on GitHub ↗
(delta: -1 | 1)

Source from the content-addressed store, hash-verified

1366 }
1367 }, [autoUpdaterDisabledReason, filteredSettingsItems, selectedIndex, settingsData?.autoUpdatesChannel, setTabsHidden]);
1368 const moveSelection = (delta: -1 | 1): void => {
1369 setShowThinkingWarning(false);
1370 const newIndex_1 = Math.max(0, Math.min(filteredSettingsItems.length - 1, selectedIndex + delta));
1371 setSelectedIndex(newIndex_1);
1372 adjustScrollOffset(newIndex_1);
1373 };
1374 useKeybindings({
1375 'select:previous': () => {
1376 if (selectedIndex === 0) {

Callers 1

ConfigFunction · 0.85

Calls 1

maxMethod · 0.80

Tested by

no test coverage detected