Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Project panel: Deselect entries on remaining blank space click + Remove hover color for selected entries (#22073)
tims62b3acee5fcc
diff --git a/crates/project_panel/src/project_panel.rs b/crates/project_panel/src/project_panel.rsindex 2714e70c6e9..1f4fd50f410 100644--- a/crates/project_panel/src/project_panel.rs+++ b/crates/project_panel/src/project_panel.rs@@ -3224,7 +3224,9 @@ impl ProjectPanel {.border_1().border_r_2().border_color(border_color)- .hover(|style| style.bg(bg_hover_color))+ .when(!is_marked && !is_active, |div| {+ div.hover(|style| style.bg(bg_hover_color))+ }).when(is_local, |div| {div.on_drag_move::<ExternalPaths>(cx.listener(move |this, event: &DragMoveEvent<ExternalPaths>, cx| {@@ -3897,6 +3899,11 @@ impl Render for ProjectPanel {this.hide_scrollbar(cx);}}))+ .on_click(cx.listener(|this, _event, cx| {+ cx.stop_propagation();+ this.selection = None;+ this.marked_entries.clear();+ })).key_context(self.dispatch_context(cx)).on_action(cx.listener(Self::select_next)).on_action(cx.listener(Self::select_prev))