MCPcopy
hub / github.com/basecamp/once / formFocusSubmit

Function formFocusSubmit

internal/ui/form_test.go:376–380  ·  view source on GitHub ↗
(form *Form)

Source from the content-addressed store, hash-verified

374}
375
376func formFocusSubmit(form *Form) {
377 for form.Focused() != form.submitIndex() {
378 formPressTab(form)
379 }
380}
381
382func formClickSubmit(form *Form) {
383 *form = updateForm(*form, MouseEvent{IsClick: true, Target: "submit"})

Calls 3

formPressTabFunction · 0.85
FocusedMethod · 0.80
submitIndexMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…