MCPcopy Create free account
hub / github.com/cogentcore/core / editDone

Method editDone

texteditor/editor.go:276–283  ·  view source on GitHub ↗

editDone completes editing and copies the active edited text to the text; called when the return key is pressed or goes out of focus

()

Source from the content-addressed store, hash-verified

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
276func (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

Callers 3

InitMethod · 0.95
handleFocusMethod · 0.95
keyInputMethod · 0.95

Calls 3

clearSelectedMethod · 0.95
clearCursorMethod · 0.95
SendChangeMethod · 0.80

Tested by

no test coverage detected