From ea9590b75af680888e36ea7f0cbe43b05fc76b25 Mon Sep 17 00:00:00 2001 From: aiongg Date: Wed, 25 Nov 2026 15:51:49 +0000 Subject: [PATCH] Canvas focus comment: a click on a panel leaves the canvas focused --- crates/ui-egui/src/graph/canvas_focus.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/ui-egui/src/graph/canvas_focus.rs b/crates/ui-egui/src/graph/canvas_focus.rs index cd2b51fb..90adeb52 100644 --- a/crates/ui-egui/src/graph/canvas_focus.rs +++ b/crates/ui-egui/src/graph/canvas_focus.rs @@ -56,9 +56,9 @@ pub(crate) fn under_pointer(ui: &Ui, canvas: &Response, hovered: bool, search: I } /// Settle the focus and Tab once the canvas has handled its input. A graph that opens or becomes active asks for the -/// focus, and so does the canvas while nothing is focused and Tab opens its node search (`opens_search`): a click on a -/// panel leaves the focus nowhere. It waits for a dialog, menu or popup to close, and leaves the focus with a text field -/// and, after [`FOCUS_PASSES`], with a widget of another window. +/// focus, and so does the canvas while nothing is focused and Tab opens its node search (`opens_search`). It waits for a +/// dialog, menu or popup to close, and leaves the focus with a text field and, after [`FOCUS_PASSES`], with a widget +/// of another window. pub(crate) fn settle(app: &mut MaterialCraftApp, ui: &Ui, opens_search: bool) { let ctx = ui.ctx(); let opens_search = opens_search && app.ui.prefs.tab_opens_node_search && !Modality::capture(app, ctx).is_blocked();