diff --git a/crates/project_panel/src/project_panel.rs b/crates/project_panel/src/project_panel.rs index 9a8555507bfc0a1b069b3b0dd58182a6fd5364df..909de9c0837448e2f1314c45629598237b0e415d 100644 --- a/crates/project_panel/src/project_panel.rs +++ b/crates/project_panel/src/project_panel.rs @@ -5771,13 +5771,14 @@ impl Render for ProjectPanel { cx.stop_propagation(); }, )) - .on_click(cx.listener(|this, event, _, cx| { + .on_click(cx.listener(|this, event, window, cx| { if matches!(event, gpui::ClickEvent::Keyboard(_)) { return; } cx.stop_propagation(); this.state.selection = None; this.marked_entries.clear(); + this.focus_handle(cx).focus(window); })) .on_mouse_down( MouseButton::Right,