MoveTextEnd moves the caret to the end of the text.
(selAct selectionAction)
| 659 | |
| 660 | // MoveTextEnd moves the caret to the end of the text. |
| 661 | func (e *textView) MoveTextEnd(selAct selectionAction) { |
| 662 | caret := e.closestToRune(math.MaxInt) |
| 663 | e.caret.start = caret.runes |
| 664 | e.caret.xoff = fixed.I(e.params.MaxWidth) - caret.x |
| 665 | e.updateSelection(selAct) |
| 666 | e.clampCursorToGraphemes() |
| 667 | } |
| 668 | |
| 669 | // MoveLineStart moves the caret to the start of the current line, ensuring that the resulting |
| 670 | // cursor position is on a grapheme cluster boundary. |