chore: update deps
This commit is contained in:
@@ -659,7 +659,7 @@ impl PopupMenu {
|
||||
cx: &mut Context<Self>,
|
||||
) {
|
||||
if let Some(context) = self.action_context.as_ref() {
|
||||
context.focus(window);
|
||||
context.focus(window, cx);
|
||||
}
|
||||
|
||||
window.dispatch_action(action.boxed_clone(), cx);
|
||||
@@ -759,7 +759,7 @@ impl PopupMenu {
|
||||
// Focus the submenu, so that can be handle the action.
|
||||
active_submenu.update(cx, |view, cx| {
|
||||
view.set_selected_index(0, cx);
|
||||
view.focus_handle.focus(window);
|
||||
view.focus_handle.focus(window, cx);
|
||||
});
|
||||
cx.notify();
|
||||
return true;
|
||||
@@ -790,7 +790,7 @@ impl PopupMenu {
|
||||
|
||||
self.selected_index = None;
|
||||
parent.update(cx, |view, cx| {
|
||||
view.focus_handle.focus(window);
|
||||
view.focus_handle.focus(window, cx);
|
||||
cx.notify();
|
||||
});
|
||||
}
|
||||
@@ -819,7 +819,7 @@ impl PopupMenu {
|
||||
|
||||
// Focus back to the previous focused handle.
|
||||
if let Some(action_context) = self.action_context.as_ref() {
|
||||
window.focus(action_context);
|
||||
window.focus(action_context, cx);
|
||||
}
|
||||
|
||||
let Some(parent_menu) = self.parent_menu.clone() else {
|
||||
|
||||
Reference in New Issue
Block a user