WithPositionalFocus.focusToRight

Positional focus: Switch focus from the currently focused node to another based on screen position.

This launches a tree action that will find a candidate node and switch focus to it during the next frame. Nodes that are the closest semantically (are in the same container node, or overall close in the tree) will be chosen first; screen distance will be used when two nodes have the same weight.

interface WithPositionalFocus
final
focusToRight
()

Return Value

The launched tree action. You can use .then to attach a callback that will run as soon as the node is found.

Meta