1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
//go:build !wasm package ui func (ti *TextInput) Focus(focus bool) { ti.focused = focus } func (*TextInput) IsUpdatable() bool { return true } func (ti *TextInput) Update() error { if ti.focused { } return nil }