editDone completes editing and copies the active edited text to the text; called when the return key is pressed or goes out of focus
()
| 274 | // editDone completes editing and copies the active edited text to the text; |
| 275 | // called when the return key is pressed or goes out of focus |
| 276 | func (ed *Editor) editDone() { |
| 277 | if ed.Buffer != nil { |
| 278 | ed.Buffer.editDone() |
| 279 | } |
| 280 | ed.clearSelected() |
| 281 | ed.clearCursor() |
| 282 | ed.SendChange() |
| 283 | } |
| 284 | |
| 285 | // reMarkup triggers a complete re-markup of the entire text -- |
| 286 | // can do this when needed if the markup gets off due to multi-line |
no test coverage detected