zng::focus

Function alt_focus_scope

source
pub fn alt_focus_scope(
    child: impl UiNode,
    is_scope: impl IntoVar<bool>,
) -> impl UiNode
Expand description

P Widget is the ALT focus scope.

ALT focus scopes are also, TabIndex::SKIP, skip_directional_nav, TabNav::Cycle and DirectionalNav::Cycle by default.

Also see focus_click_behavior that can be used to return focus automatically when any widget inside the ALT scope handles a click.