on_focus_changed

Function on_focus_changed 

Source
pub fn on_focus_changed(
    child: impl IntoUiNode,
    handler: Box<dyn FnMut(&FocusChangedArgs) -> HandlerResult + Send>,
) -> UiNode
Expand description

P Focus changed in the widget or its descendants.

§Preview

You can preview this event using on_pre_focus_changed. Otherwise the handler is only called after the widget content has a chance to stop propagation.

§Async

You can use async event handlers with this property.