MCPcopy Create free account
hub / github.com/AccessKit/accesskit / focus

Method focus

consumer/src/tree.rs:544–549  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

542 }
543
544 pub fn focus(&self) -> Option<Node<'_>> {
545 self.focus_id().map(|id| {
546 let focused = self.node_by_id(id).unwrap();
547 focused.active_descendant().unwrap_or(focused)
548 })
549 }
550
551 pub fn active_dialog(&self) -> Option<Node<'_>> {
552 let mut node = self.focus();

Callers 2

active_dialogMethod · 0.45
process_changesMethod · 0.45

Calls 4

mapMethod · 0.80
focus_idMethod · 0.80
node_by_idMethod · 0.80
active_descendantMethod · 0.80

Tested by

no test coverage detected