Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/basecamp/once
/ Focused
Method
Focused
internal/ui/form.go:362–364 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
360
}
361
362
func
(f Form) Focused() int {
363
return
f.focused
364
}
365
366
func
(f Form) Field(i int) FormField {
367
return
f.items[i].Field
Callers
15
TestForm_FocusCycling
Function · 0.95
TestForm_ShiftTabCycling
Function · 0.95
TestForm_EnterAdvancesFocus
Function · 0.95
TestForm_SubmitAction
Function · 0.95
TestForm_CancelAction
Function · 0.95
TestForm_NoFields
Function · 0.95
TestForm_ValidationErrorClearsOnInput
Function · 0.95
TestForm_ValidationFocusesFirstError
Function · 0.95
TestFormAppendItems_FocusStability
Function · 0.95
formFocusSubmit
Function · 0.80
focusedRow
Method · 0.80
renderContent
Method · 0.80
Calls
no outgoing calls
Tested by
15
TestForm_FocusCycling
Function · 0.76
TestForm_ShiftTabCycling
Function · 0.76
TestForm_EnterAdvancesFocus
Function · 0.76
TestForm_SubmitAction
Function · 0.76
TestForm_CancelAction
Function · 0.76
TestForm_NoFields
Function · 0.76
TestForm_ValidationErrorClearsOnInput
Function · 0.76
TestForm_ValidationFocusesFirstError
Function · 0.76
TestFormAppendItems_FocusStability
Function · 0.76
formFocusSubmit
Function · 0.64
TestSettingsFormApplication_InitialState_NonLocalhost
Function · 0.64
TestSettingsFormApplication_TabNavigation
Function · 0.64