Function ambient_ui::use_focus

source ·
pub fn use_focus(hooks: &mut Hooks<'_>) -> (bool, FocusSetter)
Expand description

A hook that returns the current focus state for this element and a callback to set the focus state.