Skip to main content

blockly > KeyboardMover > move

KeyboardMover.move() method

Moves the current element in the given direction.

Signature:

move(direction: Direction, event?: KeyboardEvent | PointerEvent): boolean;

Parameters

Parameter

Type

Description

direction

Direction

The direction to move the currently-moving element.

event

KeyboardEvent | PointerEvent

(Optional) The event that triggered this move, if any.

Returns:

boolean

True iff this action applies and has been performed.