Scope the left and right bindings in the project panel

This commit is contained in:
Nathan Sobo 2021-09-30 10:50:58 -06:00
parent 41fea2de1c
commit 18a379f20c

View file

@ -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")),
]);
}