Allow to input spaces in the outline panel filter input (#14951)

Release Notes:

- Fixed outline panel's filter not accepting spaces
This commit is contained in:
Kirill Bulatov
2024-07-22 12:02:25 +03:00
committed by GitHub
parent 0ef19dedd2
commit 31d283932c
+3 -1
View File
@@ -457,7 +457,9 @@ impl OutlinePanel {
}
fn open(&mut self, _: &Open, cx: &mut ViewContext<Self>) {
if let Some(selected_entry) = self.selected_entry.clone() {
if self.filter_editor.focus_handle(cx).is_focused(cx) {
cx.propagate()
} else if let Some(selected_entry) = self.selected_entry.clone() {
self.open_entry(&selected_entry, cx);
}
}