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:
Ernestas Kulik 2016-11-03 12:58:41 +02:00
parent dbd5fb43ab
commit 39a8a6ef72

View File

@ -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;
}