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

Method selectAll

core/textfield.go:919–927  ·  view source on GitHub ↗

selectAll selects all the text

()

Source from the content-addressed store, hash-verified

917
918// selectAll selects all the text
919func (tf *TextField) selectAll() {
920 tf.selectStart = 0
921 tf.selectInit = 0
922 tf.selectEnd = len(tf.editText)
923 if TheApp.SystemPlatform().IsMobile() {
924 tf.Send(events.ContextMenu)
925 }
926 tf.NeedsRender()
927}
928
929// isWordBreak defines what counts as a word break for the purposes of selecting words
930func (tf *TextField) isWordBreak(r rune) bool {

Callers 3

InitMethod · 0.95
selectWordMethod · 0.95
handleKeyEventsMethod · 0.95

Calls 4

IsMobileMethod · 0.80
NeedsRenderMethod · 0.80
SystemPlatformMethod · 0.65
SendMethod · 0.45

Tested by

no test coverage detected