zng::focus

Function is_return_focus_within

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

P If the widget or one of its descendants will be focused when a focus scope is focused.

To check if only the widget is the return focus use is_return_focus.