MCPcopy Create free account
hub / github.com/babycommando/nightride-cli / focusFormField

Method focusFormField

zuse.go:531–547  ·  view source on GitHub ↗
(idx formField)

Source from the content-addressed store, hash-verified

529
530
531func (m *ircModel) focusFormField(idx formField) tea.Cmd {
532 if idx < 0 {
533 idx = 0
534 }
535 if idx >= totalFields {
536 idx = totalFields - 1
537 }
538 if m.formSel != fieldSubmit {
539 m.formInputs[m.formSel].Blur()
540 }
541 m.formSel = idx
542 if m.formSel != fieldSubmit {
543 m.formInputs[m.formSel].Focus()
544 return textinput.Blink
545 }
546 return nil
547}
548
549func (m *ircModel) injectASCIIArt(id serverID) {
550 ascii := styleDim.Render(`

Callers 1

updateFormMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected