UI module

move_by

procedure · 1 overloadsince 0.31.0Source

Move the caret one unit left or right.

move_by :: (edit: *Text_Edit, unit: Unit, direction: int, extend: bool = false)

Move the caret one unit left or right.

Parameters

edit: *Text_Edit
the text being edited.
unit: Unit
how far to go.
direction: int
-1 for left, 1 for right.
extend: bool
keep the anchor, so the selection grows or shrinks.

See also