TextBox remembers dot when unfocused

Remedy #8
This commit is contained in:
Sasha Koshka 2024-05-20 12:58:02 -04:00
parent b8ce9d15f7
commit c0c4bdb266

View File

@ -227,7 +227,6 @@ func (this *textBox) textOffset () image.Point {
} }
func (this *textBox) handleFocusLeave () { func (this *textBox) handleFocusLeave () {
this.dot = text.EmptyDot(0)
this.on.dotChange.Broadcast() this.on.dotChange.Broadcast()
this.invalidateDraw() this.invalidateDraw()
this.box.handleFocusLeave() this.box.handleFocusLeave()