mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-10 20:29:05 +00:00
Merge pull request #2041 from zed-industries/fix-renaming-file
Fix mouse interrupting file/dir editing in project panel
This commit is contained in:
commit
9f3c8c1e3a
1 changed files with 9 additions and 7 deletions
|
@ -1176,6 +1176,7 @@ impl ProjectPanel {
|
|||
)
|
||||
})
|
||||
.on_click(MouseButton::Left, move |e, cx| {
|
||||
if !show_editor {
|
||||
if kind == EntryKind::Dir {
|
||||
cx.dispatch_action(ToggleExpanded(entry_id))
|
||||
} else {
|
||||
|
@ -1184,6 +1185,7 @@ impl ProjectPanel {
|
|||
change_focus: e.click_count > 1,
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
.on_down(MouseButton::Right, move |e, cx| {
|
||||
cx.dispatch_action(DeployContextMenu {
|
||||
|
|
Loading…
Reference in a new issue