Skip to main content

MoveCursorCmd

Classes

MoveCursorCmd

The command to move the current cursor position.

Implements

Constructors

Constructor
new MoveCursorCmd(textManager, initData): MoveCursorCmd;
Parameters
ParameterType
textManagerITextManager
initDataMoveCursorCmdData
Returns

MoveCursorCmd

Methods

execute()
execute(): boolean;

Executes the command.

Returns

boolean

true if changes were made, false otherwise.

Implementation of

ICommand.execute


MoveCursorCmdData

Data required to initialize the command.

Constructors

Constructor
new MoveCursorCmdData(direction, withSelection): MoveCursorCmdData;
Parameters
ParameterType
directionMoveDirectionType
withSelectionboolean
Returns

MoveCursorCmdData

Properties

direction
direction: MoveDirectionType;

Direction of cursor movement.

withSelection
withSelection: boolean;

Indicates if the cursor moves with the selection.

Was this page helpful?