From fe302d934348d43885e46cd61f231afaea76bd2e Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Mon, 16 Mar 2026 09:28:45 -0700 Subject: [PATCH] Focus active pane when unfocusing drawer --- crates/workspace/src/workspace.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/workspace/src/workspace.rs b/crates/workspace/src/workspace.rs index 7dab90e75b6dab3d2b2aa6ac97347d3e8fab40e3..9dd2b6afe813b3b49504dcf338703adef83ed848 100644 --- a/crates/workspace/src/workspace.rs +++ b/crates/workspace/src/workspace.rs @@ -7087,7 +7087,8 @@ impl Workspace { ) -> bool { if let Some((view, drawer)) = self.drawer_mut::() { if view.focus_handle(cx).contains_focused(window, cx) { - // todo! focus the center? + self.active_pane + .update(cx, |pane, cx| window.focus(&pane.focus_handle(cx), cx)); false } else { drawer.open = true;