From 39a8a6ef72ace7bd5638a7da745a0063f454b998 Mon Sep 17 00:00:00 2001 From: Ernestas Kulik Date: Thu, 3 Nov 2016 12:58:41 +0200 Subject: [PATCH] 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 --- gtk/gtkpopover.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c index abfb90f0b2..5f0f4434ff 100644 --- a/gtk/gtkpopover.c +++ b/gtk/gtkpopover.c @@ -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; }