TextInput updates state better when typing

This commit is contained in:
Sasha Koshka 2024-09-06 00:14:10 -04:00
parent 38d950f44a
commit 3077249a13

View File

@ -214,6 +214,7 @@ func (this *TextInput) handleKeyDown (key input.Key, numpad bool) bool {
this.box.SetText(string(txt))
this.box.Select(dot)
this.on.valueChange.Broadcast()
this.on.dotChange.Broadcast()
this.logKeystroke()
}
} ()