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.

windows: Using `ctrl+drag` to copy in windows platform (#31433)

CharlesChen0823d9a5dc2dfe9e
diff --git a/crates/project_panel/src/project_panel.rs b/crates/project_panel/src/project_panel.rs
index 9b8992fc6cc..ccdf00b3d43 100644
--- a/crates/project_panel/src/project_panel.rs
+++ b/crates/project_panel/src/project_panel.rs
@@ -3104,7 +3104,8 @@ impl ProjectPanel {
window: &mut Window,
cx: &mut Context<Self>,
) {
- let should_copy = window.modifiers().alt;
+ let should_copy = cfg!(target_os = "macos") && window.modifiers().alt
+ || cfg!(not(target_os = "macos")) && window.modifiers().control;
if should_copy {
let _ = maybe!({
let project = self.project.read(cx);