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

Method clearSelected

texteditor/select.go:50–53  ·  view source on GitHub ↗

Selection clearSelected resets both the global selected flag and any current selection

()

Source from the content-addressed store, hash-verified

48
49// clearSelected resets both the global selected flag and any current selection
50func (ed *Editor) clearSelected() {
51 // ed.WidgetBase.ClearSelected()
52 ed.SelectReset()
53}
54
55// HasSelection returns whether there is a selected region of text
56func (ed *Editor) HasSelection() bool {

Callers 1

editDoneMethod · 0.95

Calls 1

SelectResetMethod · 0.95

Tested by

no test coverage detected