Merge pull request #1532 from zed-industries/fix-adding-contacts
Fix focus regression in contact finder
This commit is contained in:
commit
062105edb9
1 changed files with 3 additions and 1 deletions
|
@ -43,8 +43,10 @@ impl View for ContactFinder {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn on_focus_in(&mut self, _: AnyViewHandle, cx: &mut ViewContext<Self>) {
|
fn on_focus_in(&mut self, _: AnyViewHandle, cx: &mut ViewContext<Self>) {
|
||||||
|
if cx.is_self_focused() {
|
||||||
cx.focus(&self.picker);
|
cx.focus(&self.picker);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl PickerDelegate for ContactFinder {
|
impl PickerDelegate for ContactFinder {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue