Address picker issues

This commit is contained in:
K Simmons 2022-08-09 15:51:17 -07:00
parent 6f180ed822
commit f5a6a112c8
9 changed files with 24 additions and 9 deletions

View file

@ -119,7 +119,9 @@ impl<D: PickerDelegate> View for Picker<D> {
}
fn on_focus_in(&mut self, _: AnyViewHandle, cx: &mut ViewContext<Self>) {
cx.focus(&self.query_editor);
if cx.is_self_focused() {
cx.focus(&self.query_editor);
}
}
}