Skip to main content

element_focus

Function element_focus 

Source
pub fn element_focus(node: i64)
Expand description

element.focus(): a focusable element that does not have focus takes it, the element that had it losing it first — and the blur and focus that raises wait in take_raised_events for the host to deliver once the turn that asked has committed, as a browser delivers them. Anything else is left alone: an element that cannot take focus, or already has it.