Method AdvanceFocus | Terminal.Gui v2 (original) (raw)

Namespace

Terminal.Gui

Assembly

Terminal.Gui.dll

AdvanceFocus(NavigationDirection, TabBehavior?)

Advances the focus to the next or previous view in the focus chain, based ondirection.

public bool AdvanceFocus(NavigationDirection direction, TabBehavior? behavior)

Parameters

direction NavigationDirection

The direction to advance.

behavior TabBehavior?

The tab behavior.

Returns

bool

true if focus was changed to another subview (or stayed on this one), falseotherwise.

Remarks

If there is no next/previous view, the focus remains on the current view.