Function zng_wgt_input::focus::is_focused_hgl
source · pub fn is_focused_hgl(
child: impl UiNode,
state: impl IntoVar<bool>,
) -> impl UiNode
Expand description
P
If the widget has keyboard focus and the user is using the keyboard to navigate.
This is only true
if the widget itself is focused and the focus was acquired by keyboard navigation.
You can use is_focus_within_hgl
to include widgets inside this one.
§Highlighting
Usually when the keyboard is used to move the focus a special visual indicator is rendered, a dotted line border is common,
this state is called highlighting and is tracked by the focus manager, this property is only true
.