forked from AuroraMiddleware/gtk
menu: Dismiss submenus during keynav
We need to dismiss submenus explicitly on left arrow, otherwise the grab interferes with our keynav.
This commit is contained in:
parent
4936e7f859
commit
fdc4335eba
@ -336,6 +336,12 @@ gtk_popover_menu_focus (GtkWidget *widget,
|
||||
return TRUE;
|
||||
if (direction == GTK_DIR_LEFT)
|
||||
{
|
||||
if (menu->open_submenu)
|
||||
{
|
||||
gtk_popover_popdown (GTK_POPOVER (menu->open_submenu));
|
||||
menu->open_submenu = NULL;
|
||||
}
|
||||
|
||||
gtk_widget_grab_focus (menu->active_item);
|
||||
|
||||
return TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user