diff options
author | Cody Russell <crussell@canonical.com> | 2010-03-09 20:42:24 -0600 |
---|---|---|
committer | Cody Russell <crussell@canonical.com> | 2010-03-09 20:42:24 -0600 |
commit | 3865303f37b9e495bfe1fd0e36e6fbb5ff628eaf (patch) | |
tree | 7e102ffacb0995e343fea582ff586b1fd008245f /src | |
parent | de771b0efbaaf02eb510d999d11e07decc7db454 (diff) | |
download | ayatana-ido-3865303f37b9e495bfe1fd0e36e6fbb5ff628eaf.tar.gz ayatana-ido-3865303f37b9e495bfe1fd0e36e6fbb5ff628eaf.tar.bz2 ayatana-ido-3865303f37b9e495bfe1fd0e36e6fbb5ff628eaf.zip |
Don't forward the event to the entry if the user hit the Esc key.
Diffstat (limited to 'src')
-rw-r--r-- | src/idoentrymenuitem.c | 4 |
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))); |