focus-path ( gadget -- seq )


Vocabulary
ui.gadgets

Inputs
gadgeta gadget


Outputs
seqa new sequence


Word description
If the gadget has focus, outputs a sequence of parents of the currently focused gadget, otherwise outputs f.

Notes
This word is used to avoid sending gain-focus gestures to a gadget which requests focus on an unfocused top-level window, so that, for instance, a text editing caret does not appear in this case.

Definition