Expand description
Unified, zero-allocation focusability, modal tracking, and deterministic unmount focus recovery
over &NodeStore, shared across LaidOutScene (Skia/Headless) and WebBackend.
Re-exports§
pub use crate::focus_query::first_focusable_in_subtree;pub use crate::focus_query::first_matching_in_subtree;pub use crate::focus_query::is_composite_aria_group;pub use crate::focus_query::is_focusable_node;pub use crate::focus_query::is_focusable_self;pub use crate::focus_query::is_subtree_disabled;pub use crate::focus_query::is_tabbable_self;pub use crate::focus_query::is_text_entry_node;
Structs§
- Focus
Anchor - Snapshot of the currently focused node’s structural context used to recover focus deterministically when the focused node (or any ancestor wrapper) unmounts, hides, disables, or exits a modal.
Enums§
- Focus
Recovery Result - Outcome of post-commit focus reconciliation.
Functions§
- is_
subtree_ closed_ overlay - Returns
truewhenidor any ancestor owns a closedOverlayrow. - is_
within_ subtree - Returns
truewhennodeequalsancestoror descends fromancestor. - resolve_
focus_ recovery - Resolves deterministic focus recovery after a committed
NodeStoremutation (zero allocs). - snapshot_
focus_ anchor - Captures
focused’s sibling handles, ancestor(parent, child_index)trail, composite ARIA group, and active modal intoanchor(zero steady-state allocations). - topmost_
open_ modal - Finds the topmost (last in document order) open modal
Overlayin the top layer (zero allocs on a warmdfs_scratch). The single definition ([INV:top-layer-single-definition]) shared by focus management, semantic queries, and — throughTopLayerIndex, which applieswalk_top_layer_chainwith the same oracle and document order — layout, hit-testing, scroll latching and accessibility.