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

Function navigateFooter

src/components/PromptInput/PromptInput.tsx:494–506  ·  view source on GitHub ↗
(delta: 1 | -1, exitAtStart = false)

Source from the content-addressed store, hash-verified

492 // delta: +1 = down/right, -1 = up/left. Returns true if nav happened
493 // (including deselecting at the start), false if at a boundary.
494 function navigateFooter(delta: 1 | -1, exitAtStart = false): boolean {
495 const idx = footerItemSelected ? footerItems.indexOf(footerItemSelected) : -1;
496 const next = footerItems[idx + delta];
497 if (next) {
498 selectFooterItem(next);
499 return true;
500 }
501 if (delta < 0 && exitAtStart) {
502 selectFooterItem(null);
503 return true;
504 }
505 return false;
506 }
507
508 // Prompt suggestion hook - reads suggestions generated by forked agent in query loop
509 const {

Callers 1

PromptInputFunction · 0.85

Calls 1

selectFooterItemFunction · 0.85

Tested by

no test coverage detected