Handbook
Glossary
remove-selection ( editor -- )
Factor handbook
»
UI framework
»
Building user interfaces
»
Pre-made UI gadgets
»
Editor gadgets
»
The caret and mark
Prev:
gadget-selection ( gadget -- string/f )
Next:
scroll>caret ( editor -- )
Vocabulary
ui
.
gadgets
.
editors
Inputs
editor
an
editor
Outputs
None
Word description
Removes currently selected text from the editor's
document
.
Definition
USING:
accessors
documents
kernel
ui.gadgets.editors.private
;
IN:
ui.gadgets.editors
:
remove-selection
( editor -- )
[
selection-start/end
]
[
model>>
]
bi
remove-doc-range
;