aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/idoentrymenuitem.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/idoentrymenuitem.c b/src/idoentrymenuitem.c
index 62b64dc..5a1cb42 100644
--- a/src/idoentrymenuitem.c
+++ b/src/idoentrymenuitem.c
@@ -23,6 +23,7 @@
* Cody Russell <crussell@canonical.com>
*/
+#include <gdk/gdkkeysyms.h>
#include "idoentrymenuitem.h"
static void ido_entry_menu_item_select (GtkItem *item);
@@ -125,7 +126,8 @@ ido_entry_menu_item_key_press (GtkWidget *widget,
{
IdoEntryMenuItem *menuitem = (IdoEntryMenuItem *)data;
- if (menuitem->priv->selected)
+ if (menuitem->priv->selected &&
+ event->keyval != GDK_Escape)
{
gtk_widget_event (menuitem->priv->entry,
((GdkEvent *)(void*)(event)));