MCPcopy Create free account
hub / github.com/1buran/rHttp / prevInput

Method prevInput

main.go:293–308  ·  view source on GitHub ↗

prevInput focuses the previous input field

()

Source from the content-addressed store, hash-verified

291
292// prevInput focuses the previous input field
293func (m *model) prevInput() {
294
295 m.blurPrompt(m.focused)
296
297 if m.focused-1 == fieldsCount {
298 m.focused -= 2 // crossed abroad, go to checkboxes
299 } else {
300 m.focused--
301 }
302
303 // Wrap around
304 if m.focused < 0 {
305 m.focused = end - 1
306 }
307 m.focusPrompt(m.focused)
308}
309
310// Request is executed.
311func (m *model) reqIsExecuted() bool {

Callers 1

UpdateMethod · 0.95

Calls 2

blurPromptMethod · 0.95
focusPromptMethod · 0.95

Tested by

no test coverage detected