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