blockly > LineCursor > getCurNode
LineCursor.getCurNode() method
Get the current location of the cursor.
Overrides normal Marker getCurNode to update the current node from the selected block. This typically happens via the selection listener but that is not called immediately when Gesture
calls Blockly.common.setSelected
. In particular the listener runs after showing the context menu.
Signature:
getCurNode(): IFocusableNode | null;
Returns:
IFocusableNode | null
The current field, connection, or block the cursor is on.