CursorEnd moves the edit cursor to the end of the text
()
| 166 | |
| 167 | // CursorEnd moves the edit cursor to the end of the text |
| 168 | func (ed *Edit) CursorEnd() { |
| 169 | |
| 170 | ed.col = text.StrCount(ed.text) |
| 171 | ed.redraw(ed.focus) |
| 172 | } |
| 173 | |
| 174 | // CursorDelete deletes the character at the right of the cursor if possible |
| 175 | func (ed *Edit) CursorDelete() { |