Compare commits

...

2 Commits

Author SHA1 Message Date
55215dedc2 Select all in textBox uses the length of the rune slice 2024-09-12 01:15:17 -04:00
eb98d143db Fix textBox 2024-09-12 01:15:01 -04:00

View File

@ -392,6 +392,8 @@ func (this *textBox) runeUnderMouse () int {
return this.drawer.AtPosition(fixPt(position)) return this.drawer.AtPosition(fixPt(position))
} }
// TODO the keynav here should make better use of input key chords.
func (this *textBox) handleKeyDown (key input.Key, numberPad bool) bool { func (this *textBox) handleKeyDown (key input.Key, numberPad bool) bool {
if this.box.handleKeyDown(key, numberPad) { return true } if this.box.handleKeyDown(key, numberPad) { return true }
if !this.selectable { return false } if !this.selectable { return false }