mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-10 20:41:59 +00:00
project_panel: Fixed open in split not working in project panel (#14535)
Release Notes: - Fixed `cmd-double click` in project panel not opening a split view ([14465](https://github.com/zed-industries/zed/issues/14465))
This commit is contained in:
parent
e413823ae7
commit
ef20afa9a4
1 changed files with 10 additions and 12 deletions
|
@ -2171,24 +2171,22 @@ impl ProjectPanel {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else if event.down.modifiers.secondary() {
|
} else if event.down.modifiers.secondary() {
|
||||||
if !this.marked_entries.insert(selection) {
|
if event.down.click_count > 1 {
|
||||||
|
this.split_entry(entry_id, cx);
|
||||||
|
} else if !this.marked_entries.insert(selection) {
|
||||||
this.marked_entries.remove(&selection);
|
this.marked_entries.remove(&selection);
|
||||||
}
|
}
|
||||||
} else if kind.is_dir() {
|
} else if kind.is_dir() {
|
||||||
this.toggle_expanded(entry_id, cx);
|
this.toggle_expanded(entry_id, cx);
|
||||||
} else {
|
} else {
|
||||||
let click_count = event.up.click_count;
|
let click_count = event.up.click_count;
|
||||||
if click_count > 1 && event.down.modifiers.secondary() {
|
this.open_entry(
|
||||||
this.split_entry(entry_id, cx);
|
entry_id,
|
||||||
} else {
|
cx.modifiers().secondary(),
|
||||||
this.open_entry(
|
click_count > 1,
|
||||||
entry_id,
|
click_count == 1,
|
||||||
cx.modifiers().secondary(),
|
cx,
|
||||||
click_count > 1,
|
);
|
||||||
click_count == 1,
|
|
||||||
cx,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
|
|
Loading…
Reference in a new issue