build fix

This commit is contained in:
K Simmons 2022-08-08 12:21:29 -07:00
parent 690ea57211
commit 049149320c
2 changed files with 1 additions and 8 deletions

View File

@ -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)]

View File

@ -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());