Skip to content
Myr

Resetting a text input also resets the cursor blink state

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Christian Rocha · committed by Christian Rocha · parent 9d175b5 · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:textinput/textinput.go+1 added
114 unmodified lines
115func (m *Model) Reset() {116 m.value = ""117 m.offset = 0118 m.pos = 0119 m.blink = false120}121122// If a max width is defined, perform some logic to treat the visible area123// as a horizontally scrolling viewport.
227 unmodified lines