From a0772108733278ebf4c00c320adbe269550cabef Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Fri, 25 Feb 2022 10:58:32 +0100 Subject: [PATCH] Focus query editor when deploying project-find --- crates/find/src/project_find.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/find/src/project_find.rs b/crates/find/src/project_find.rs index 5c84c233c563407f289d4d5b6271ddd42a7f002f..bd541b731d705eaec6bb8f986069467b89384bea 100644 --- a/crates/find/src/project_find.rs +++ b/crates/find/src/project_find.rs @@ -153,6 +153,10 @@ impl View for ProjectFindView { ) .boxed() } + + fn on_focus(&mut self, cx: &mut ViewContext) { + cx.focus(&self.query_editor); + } } impl workspace::ItemView for ProjectFindView {