focus

Function focus 

Source
pub fn focus<V: View, F: Fn(bool) -> V + 'static>(f: F) -> impl View
Expand description

Calls calls a function with true if the view subtree returned by the function has the keyboard focus.