Skip to content

Components

Focus

Controls how a node may take the focus ring: never, only by a pointer press, or normally. Names a neighbour for a direction or the Tab order when the computed answer is wrong. Goes under a Canvas.

On this page

Add it

+ Add node → Text Entry creates a node with it already on. Already have a node for it? Add component → FocusComponent.

From a script

A script on the same node writes these fields by name. FocusComponent is the name to pass.

rgs
set_text("FocusComponent", "up", "");
set_text("FocusComponent", "down", "");
set_text("FocusComponent", "left", "");
set_text("FocusComponent", "right", "");
set_text("FocusComponent", "next", "");
set_text("FocusComponent", "previous", "");

Fields

FieldScript nameKindDefaultWhat it does
Modemodeone of None, Click, AllAllHow this node may be focused.
Subtree Focussubtree_focusone of Inherit, Deny, AllowInheritWhether the ring may enter this subtree.
Subtree Pointersubtree_pointerone of Inherit, Deny, AllowInheritWhether pointers may enter this subtree.
UpuptextemptyNode to focus on up; empty computes it.
DowndowntextemptyNode to focus on down; empty computes it.
LeftlefttextemptyNode to focus on left; empty computes it.
RightrighttextemptyNode to focus on right; empty computes it.
NextnexttextemptyNext in the Tab order; empty uses reading order.
PreviousprevioustextemptyPrevious in the Tab order; empty uses reading order.

Buttons

  • Clear Links Forget every pinned neighbour and compute navigation from the rects again