Start on view-level dispatch approach for keyboard events
This commit is contained in:
@@ -116,7 +116,7 @@ impl<D: PickerDelegate> View for Picker<D> {
|
||||
cx
|
||||
}
|
||||
|
||||
fn on_focus_in(&mut self, _: AnyViewHandle, cx: &mut ViewContext<Self>) {
|
||||
fn focus_in(&mut self, _: AnyViewHandle, cx: &mut ViewContext<Self>) {
|
||||
if cx.is_self_focused() {
|
||||
cx.focus(&self.query_editor);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user