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

Closes #31328 

> There should be other places in Zed that were supposed to handle mouse
modifiers differently based on the platform, might worth checking for
them.
reference
[comments](https://github.com/zed-industries/zed/pull/29921#issuecomment-2908922764)

Release Notes:

- N/A
This commit is contained in:
CharlesChen0823 2025-05-26 21:45:19 +08:00 committed by GitHub
parent d4926626d8
commit d9a5dc2dfe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);