Select all in textBox uses the length of the rune slice

This commit is contained in:
Sasha Koshka 2024-09-12 01:15:17 -04:00
parent eb98d143db
commit 55215dedc2

View File

@ -480,7 +480,7 @@ func (this *textBox) handleKeyDown (key input.Key, numberPad bool) bool {
return true
case key == input.Key('a') && modifiers.Control():
dot.Start = 0
dot.End = len(this.text) // FIXME
dot.End = len(this.runes)
this.userSelect(dot)
return true
default: