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

Method nextInput

main.go:277–290  ·  view source on GitHub ↗

nextInput focuses the next input field

()

Source from the content-addressed store, hash-verified

275
276// nextInput focuses the next input field
277func (m *model) nextInput() {
278 switch m.focused {
279 case method:
280 m.setReqMethod()
281 }
282
283 m.blurPrompt(m.focused)
284 if m.focused+1 == fieldsCount {
285 m.focused = fieldsCount + 1 // crossed abroad, go to checkboxes
286 } else {
287 m.focused = (m.focused + 1) % end
288 }
289 m.focusPrompt(m.focused)
290}
291
292// prevInput focuses the previous input field
293func (m *model) prevInput() {

Callers 1

UpdateMethod · 0.95

Calls 3

setReqMethodMethod · 0.95
blurPromptMethod · 0.95
focusPromptMethod · 0.95

Tested by

no test coverage detected