Transfer focus from ProjectDiagnostics view to its editor
This commit is contained in:
parent
6444fcd442
commit
9cd4e5ba04
1 changed files with 4 additions and 0 deletions
|
@ -52,6 +52,10 @@ impl View for ProjectDiagnosticsEditor {
|
||||||
fn render(&mut self, _: &mut RenderContext<Self>) -> ElementBox {
|
fn render(&mut self, _: &mut RenderContext<Self>) -> ElementBox {
|
||||||
ChildView::new(self.editor.id()).boxed()
|
ChildView::new(self.editor.id()).boxed()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn on_focus(&mut self, cx: &mut ViewContext<Self>) {
|
||||||
|
cx.focus(&self.editor);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl ProjectDiagnosticsEditor {
|
impl ProjectDiagnosticsEditor {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue