mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-15 21:20:09 +00:00
popover: pop down when pressing escape
Simply hiding the popover may introduce inconsistencies in application behavior, since popping up/down is the usual use case. https://bugzilla.gnome.org/show_bug.cgi?id=773885
This commit is contained in:
parent
dbd5fb43ab
commit
39a8a6ef72
@ -1553,7 +1553,7 @@ gtk_popover_key_press (GtkWidget *widget,
|
||||
|
||||
if (event->keyval == GDK_KEY_Escape)
|
||||
{
|
||||
gtk_widget_hide (widget);
|
||||
gtk_popover_popdown (GTK_POPOVER (widget));
|
||||
return GDK_EVENT_STOP;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user