Skip to main content

is_focusable_node

Function is_focusable_node 

Source
pub fn is_focusable_node<O: SemanticStyleOracle + ?Sized>(
    store: &NodeStore,
    oracle: &O,
    id: NodeId,
) -> bool
Expand description

Returns true when id is live and focusable itself (is_focusable_self, tested first: it is O(1) and rejects almost every node), displayed (per oracle: cascaded @media / @container / state display on native scenes, static rows where the platform applies CSS), enabled, inside no closed overlay, not visibility: hidden (CSS-inherited) and not inert under the topmost modal (SemanticStyleOracle::is_inert). The one focusability rule: engine focus moves and the runtime’s focusable scene fact both read it.