diff --git a/crates/go_to_line/src/go_to_line.rs b/crates/go_to_line/src/go_to_line.rs index 301f37a9fb..53669ea2c6 100644 --- a/crates/go_to_line/src/go_to_line.rs +++ b/crates/go_to_line/src/go_to_line.rs @@ -224,6 +224,4 @@ impl View for GoToLine { fn on_focus(&mut self, cx: &mut ViewContext) { cx.focus(&self.line_editor); } - - fn on_blur(&mut self, _: &mut ViewContext) {} } diff --git a/crates/outline/src/outline.rs b/crates/outline/src/outline.rs index 88c3808011..1ddd3321e3 100644 --- a/crates/outline/src/outline.rs +++ b/crates/outline/src/outline.rs @@ -258,6 +258,7 @@ impl OutlineView { cx: &mut ViewContext, ) { match event { + editor::Event::Blurred => cx.emit(Event::Dismissed), editor::Event::Edited => self.update_matches(cx), _ => {} }