🌈 Create new beautiful Compose Gradients with our new wesite ->
Class

MoveCursorCommand

Moves the cursor with amount characters.

Source set: Common
public class MoveCursorCommand(public val amount: Int) : EditCommand

Moves the cursor with amount characters.

If there is selection, cancel the selection first and move the cursor to the selection start position. Then perform the cursor movement.

Parameters

amount The amount of cursor movement. If you want to move backward, pass negative value.