MoveCursorCmd
Classes
MoveCursorCmd
The command to move the current cursor position.
Implements
Constructors
Constructor
new MoveCursorCmd(textManager, initData): MoveCursorCmd;
Parameters
| Parameter | Type |
|---|---|
textManager | ITextManager |
initData | MoveCursorCmdData |
Returns
Methods
execute()
execute(): boolean;
Executes the command.
Returns
boolean
true if changes were made, false otherwise.
Implementation of
MoveCursorCmdData
Data required to initialize the command.
Constructors
Constructor
new MoveCursorCmdData(direction, withSelection): MoveCursorCmdData;
Parameters
| Parameter | Type |
|---|---|
direction | MoveDirectionType |
withSelection | boolean |
Returns
Properties
direction
direction: MoveDirectionType;
Direction of cursor movement.
withSelection
withSelection: boolean;
Indicates if the cursor moves with the selection.