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

Method SelectReset

texteditor/select.go:229–236  ·  view source on GitHub ↗

SelectReset resets the selection

()

Source from the content-addressed store, hash-verified

227
228// SelectReset resets the selection
229func (ed *Editor) SelectReset() {
230 ed.selectMode = false
231 if !ed.HasSelection() {
232 return
233 }
234 ed.SelectRegion = text.RegionNil
235 ed.previousSelectRegion = text.RegionNil
236}
237
238///////////////////////////////////////////////////////////////////////////////
239// Cut / Copy / Paste

Callers 11

iSearchStartMethod · 0.95
iSearchBackspaceMethod · 0.95
iSearchCancelMethod · 0.95
qReplaceCancelMethod · 0.95
escPressedMethod · 0.95
resetStateMethod · 0.95
setCursorFromMouseMethod · 0.95
clearSelectedMethod · 0.95
deleteSelectionMethod · 0.95
CopyMethod · 0.95
CopyRectMethod · 0.95

Calls 1

HasSelectionMethod · 0.95

Tested by

no test coverage detected