From 2eedfc62d8b49512a6974299e27c2a0df48855b2 Mon Sep 17 00:00:00 2001 From: Smit Barmase Date: Mon, 14 Jul 2025 10:59:06 +0530 Subject: [PATCH] dbg setting focus id --- crates/gpui/src/window.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/gpui/src/window.rs b/crates/gpui/src/window.rs index 32c8c9545ca6981568b1e3125483325bfaae2590..a4591017f456d100be01c9ff37202a4ad55ad684 100644 --- a/crates/gpui/src/window.rs +++ b/crates/gpui/src/window.rs @@ -1264,6 +1264,12 @@ impl Window { /// Move focus to the element associated with the given [`FocusHandle`]. pub fn focus(&mut self, handle: &FocusHandle) { + println!( + "Setting focus to {:?} on platform {:?}", + handle.id, + std::env::consts::OS + ); + if !self.focus_enabled || self.focus == Some(handle.id) { return; }