From 50d03ffc8c3bd179845ea04d63acf53983bd8f8f Mon Sep 17 00:00:00 2001 From: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Date: Fri, 4 Aug 2023 12:24:57 +0200 Subject: [PATCH] Revert "Focus filters when enabled" This reverts commit 13a6b65a35b886b9ac380e56354acb7e562bcfab. --- crates/search/src/project_search.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/crates/search/src/project_search.rs b/crates/search/src/project_search.rs index 97edb1b1aa..74635bf53c 100644 --- a/crates/search/src/project_search.rs +++ b/crates/search/src/project_search.rs @@ -1507,11 +1507,6 @@ impl ProjectSearchBar { if let Some(search_view) = self.active_project_search.as_ref() { search_view.update(cx, |search_view, cx| { search_view.filters_enabled = !search_view.filters_enabled; - if search_view.filters_enabled { - cx.focus(&search_view.included_files_editor); - } else { - cx.focus(&search_view.query_editor); - } search_view .included_files_editor .update(cx, |_, cx| cx.notify());