(&self)
| 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(); |
no test coverage detected