Skip to main content

blockly > WorkspaceSvg > getWorkspaceFocusTarget

WorkspaceSvg.getWorkspaceFocusTarget() method

Returns the focusable node representing this workspace as a whole, or null for workspaces without one (flyouts and mutators).

Focus lands here when the workspace itself is focused (e.g. via the focus workspace shortcut) rather than on any of its contents.

Signature:

getWorkspaceFocusTarget(): WorkspaceFocusTarget | null;

Returns:

WorkspaceFocusTarget | null

This workspace's focus target node, if any.