Merge pull request #1532 from zed-industries/fix-adding-contacts

Fix focus regression in contact finder
This commit is contained in:
Nathan Sobo 2022-08-17 09:43:04 -06:00 committed by GitHub
commit 062105edb9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,7 +43,9 @@ impl View for ContactFinder {
}
fn on_focus_in(&mut self, _: AnyViewHandle, cx: &mut ViewContext<Self>) {
cx.focus(&self.picker);
if cx.is_self_focused() {
cx.focus(&self.picker);
}
}
}