Select all in textBox uses the length of the rune slice
This commit is contained in:
parent
eb98d143db
commit
55215dedc2
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user