From 31d283932cca9235d7c0e9e65ae34a9c73443ddb Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Mon, 22 Jul 2024 12:02:25 +0300 Subject: [PATCH] Allow to input spaces in the outline panel filter input (#14951) Release Notes: - Fixed outline panel's filter not accepting spaces --- crates/outline_panel/src/outline_panel.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/outline_panel/src/outline_panel.rs b/crates/outline_panel/src/outline_panel.rs index 586a1d57915995b7af75cc825274a44733afc8c1..5ce4d4f8012413c50cd407175c66cce2e9977fe5 100644 --- a/crates/outline_panel/src/outline_panel.rs +++ b/crates/outline_panel/src/outline_panel.rs @@ -457,7 +457,9 @@ impl OutlinePanel { } fn open(&mut self, _: &Open, cx: &mut ViewContext) { - 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); } }