CursorRight moves the edit cursor one character right if possible
()
| 139 | |
| 140 | // CursorRight moves the edit cursor one character right if possible |
| 141 | func (ed *Edit) CursorRight() { |
| 142 | |
| 143 | if ed.col < text.StrCount(ed.text) { |
| 144 | ed.col++ |
| 145 | ed.redraw(ed.focus) |
| 146 | } |
| 147 | } |
| 148 | |
| 149 | // CursorBack deletes the character at left of the cursor if possible |
| 150 | func (ed *Edit) CursorBack() { |