Function zng::focus::is_focus_within
source ยท pub fn is_focus_within(
child: impl UiNode,
state: impl IntoVar<bool>,
) -> impl UiNode
Expand description
P
If the widget or one of its descendants has keyboard focus.
To check if only the widget has keyboard focus use is_focused
.
To track highlighted focus within use is_focus_within_hgl
property.