textselection
Textselection refers to the action of marking a portion of text within a document or user interface. The selected text is typically highlighted to indicate that it can be operated on, such as being copied, cut, pasted, deleted, or reformatted. In many environments, the selection is visually represented by a highlighted region and, when applicable, an insertion caret indicating the start or end of the selection.
Users create selections through a combination of input methods. Common interactions include dragging the mouse over
Internally, a selection is usually described by a start and end position within the text, or by
Challenges and accessibility considerations include handling complex text layouts, such as grapheme clusters and bidirectional scripts,