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

Method cursorKill

core/textfield.go:853–856  ·  view source on GitHub ↗

cursorKill deletes text from cursor to end of text

()

Source from the content-addressed store, hash-verified

851
852// cursorKill deletes text from cursor to end of text
853func (tf *TextField) cursorKill() {
854 steps := len(tf.editText) - tf.cursorPos
855 tf.cursorDelete(steps)
856}
857
858///////////////////////////////////////////////////////////////////////////////
859// Selection

Callers 1

handleKeyEventsMethod · 0.95

Calls 1

cursorDeleteMethod · 0.95

Tested by

no test coverage detected