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

Method CursorRight

gui/edit.go:141–147  ·  view source on GitHub ↗

CursorRight moves the edit cursor one character right if possible

()

Source from the content-addressed store, hash-verified

139
140// CursorRight moves the edit cursor one character right if possible
141func (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
150func (ed *Edit) CursorBack() {

Callers 1

onKeyMethod · 0.95

Calls 2

redrawMethod · 0.95
StrCountFunction · 0.92

Tested by

no test coverage detected