Table of Contents

Method AdvanceFocus

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

AdvanceFocus(NavigationDirection, TabBehavior?)

Advances the focus to the next or previous view in the focus chain, based on direction. itself.

public bool AdvanceFocus(NavigationDirection direction, TabBehavior? behavior)

Parameters

direction NavigationDirection
behavior TabBehavior?

Returns

bool

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

Remarks

If there is no next/previous view to advance to, the focus is set to the view itself.

See the View Navigation Deep Dive for more information: https://gui-cs.github.io/Terminal.GuiV2Docs/docs/navigation.html