Scope the left and right bindings in the project panel

Nathan Sobo created

Change summary

zed/src/project_panel.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Detailed changes

zed/src/project_panel.rs 🔗

@@ -69,8 +69,8 @@ pub fn init(cx: &mut MutableAppContext) {
     cx.add_action(ProjectPanel::select_next);
     cx.add_action(ProjectPanel::open_entry);
     cx.add_bindings([
-        Binding::new("right", ExpandSelectedEntry, None),
-        Binding::new("left", CollapseSelectedEntry, None),
+        Binding::new("right", ExpandSelectedEntry, Some("ProjectPanel")),
+        Binding::new("left", CollapseSelectedEntry, Some("ProjectPanel")),
     ]);
 }