Skip to main content

Home > blockly > IFocusableNode > onNodeFocus

IFocusableNode.onNodeFocus() method

Called when this node receives active focus.

Note that it's fine for implementations to change visibility modifiers, but they should avoid the following: - Creating or removing DOM elements (including via the renderer or drawer). - Affecting focus via DOM focus() calls or the FocusManager.

Implementations may consider scrolling themselves into view here; that is not handled by the focus manager.

Signature:

onNodeFocus(): void;

Returns:

void