Change summary
crates/terminal/src/terminal.rs | 7 -------
crates/terminal/src/terminal_view.rs | 2 +-
2 files changed, 1 insertion(+), 8 deletions(-)
Detailed changes
@@ -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<Self>) {
- cx.emit(Event::Activate);
- cx.defer(|view, cx| {
- cx.focus(view.content.handle());
- });
- }
}
#[derive(Error, Debug)]
@@ -152,7 +152,7 @@ impl View for TerminalView {
}
}
- fn on_focus(&mut self, cx: &mut ViewContext<Self>) {
+ fn on_focus_in(&mut self, _: AnyViewHandle, cx: &mut ViewContext<Self>) {
cx.emit(Event::Activate);
cx.defer(|view, cx| {
cx.focus(view.content.handle());