blockly > Events > MarkerMove

Events.MarkerMove class

Notifies listeners that a marker (used for keyboard navigation) has moved.

Signature:

export declare class MarkerMove extends UiBase 

Extends: UiBase

Constructors

Constructor Modifiers Description
(constructor)(opt_block, isCursor, opt_oldNode, opt_newNode) Constructs a new instance of the MarkerMove class

Properties

Property Modifiers Type Description
blockId? string (Optional) The ID of the block the marker is now on, if any.
isCursor? boolean (Optional) True if this is a cursor event, false otherwise. For information about cursors vs markers see https://blocklycodelabs.dev/codelabs/keyboard-navigation/index.html?index=..%2F..index#1.
newNode? ASTNode (Optional) The new node the marker is now on.
oldNode? ASTNode (Optional) The old node the marker used to be on, if any.
type string

Methods

Method Modifiers Description
toJson() Encode the event as JSON.