Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

project_panel: Do not ignore first focus clicks on items (#58562)

Chintan0cab9eeaba09
diff --git a/crates/project_panel/src/project_panel.rs b/crates/project_panel/src/project_panel.rs
index 3cd62852588..eece41c9afb 100644
--- a/crates/project_panel/src/project_panel.rs
+++ b/crates/project_panel/src/project_panel.rs
@@ -5679,7 +5679,7 @@ impl ProjectPanel {
)
.on_click(
cx.listener(move |project_panel, event: &gpui::ClickEvent, window, cx| {
- if event.is_right_click() || event.first_focus() || show_editor {
+ if event.is_right_click() || show_editor {
return;
}
if event.standard_click() {