blockly > KeyboardMover > canMove
KeyboardMover.canMove() method
Returns true iff the given draggable is allowed to be moved.
Signature:
canMove(draggable: IDraggable): boolean;
Parameters
Parameter | Type | Description |
|---|---|---|
draggable | The draggable element to try to move. |
Returns:
boolean
True iff movement is allowed.