diff --git a/crates/terminal/src/terminal.rs b/crates/terminal/src/terminal.rs index b71f6bdcb2..4e5ca37a9d 100644 --- a/crates/terminal/src/terminal.rs +++ b/crates/terminal/src/terminal.rs @@ -161,13 +161,6 @@ impl Dimensions for TerminalSize { fn columns(&self) -> usize { self.num_columns() } - - fn on_focus_in(&mut self, _: AnyViewHandle, cx: &mut ViewContext) { - cx.emit(Event::Activate); - cx.defer(|view, cx| { - cx.focus(view.content.handle()); - }); - } } #[derive(Error, Debug)] diff --git a/crates/terminal/src/terminal_view.rs b/crates/terminal/src/terminal_view.rs index ba6f49af02..75c9658bd6 100644 --- a/crates/terminal/src/terminal_view.rs +++ b/crates/terminal/src/terminal_view.rs @@ -152,7 +152,7 @@ impl View for TerminalView { } } - fn on_focus(&mut self, cx: &mut ViewContext) { + fn on_focus_in(&mut self, _: AnyViewHandle, cx: &mut ViewContext) { cx.emit(Event::Activate); cx.defer(|view, cx| { cx.focus(view.content.handle());