Skip to main content

handle_focus_lost_from_managed_state

Function handle_focus_lost_from_managed_state 

Source
pub fn handle_focus_lost_from_managed_state(
    window: &Window,
    hide_on_blur_pref: bool,
)
Expand description

Convenience: fetch state’s BlurDismissState from window’s AppHandle and call handle_focus_lost. Requires state to have been registered via app.manage(BlurDismissState::default()) (or similar).