MCPcopy Index your code
hub / github.com/g3n/engine / CursorEnd

Method CursorEnd

gui/edit.go:168–172  ·  view source on GitHub ↗

CursorEnd moves the edit cursor to the end of the text

()

Source from the content-addressed store, hash-verified

166
167// CursorEnd moves the edit cursor to the end of the text
168func (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
175func (ed *Edit) CursorDelete() {

Callers 1

onKeyMethod · 0.95

Calls 2

redrawMethod · 0.95
StrCountFunction · 0.92

Tested by

no test coverage detected