From 73b7b72088fbff60389979d900e544c4a87af662 Mon Sep 17 00:00:00 2001 From: Lucas Meurer Date: Thu, 27 Aug 2026 15:11:58 +0200 Subject: [PATCH] Small refinements --- crates/egui/src/memory/mod.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/crates/egui/src/memory/mod.rs b/crates/egui/src/memory/mod.rs index 72bc94ae5..436798a2e 100644 --- a/crates/egui/src/memory/mod.rs +++ b/crates/egui/src/memory/mod.rs @@ -617,10 +617,7 @@ impl Focus { } } - // AccessKit names the widget by the node id it read from the last tree we sent, so the - // widget has been here before and is in the cache. Handing the focus out here, instead of - // waiting for the widget to ask for it, means everything that reads the focus before the - // widget runs — styling it, for one — already sees the new focus. + // Handle accesskit focus requests let newly_focused = focus_requested_by_accesskit.and_then(|node_id| { self.focus_widgets_cache .keys()