aboutsummaryrefslogtreecommitdiff
path: root/src/idoentrymenuitem.c
diff options
context:
space:
mode:
authorCody Russell <crussell@canonical.com>2010-03-09 20:42:24 -0600
committerCody Russell <crussell@canonical.com>2010-03-09 20:42:24 -0600
commit3865303f37b9e495bfe1fd0e36e6fbb5ff628eaf (patch)
tree7e102ffacb0995e343fea582ff586b1fd008245f /src/idoentrymenuitem.c
parentde771b0efbaaf02eb510d999d11e07decc7db454 (diff)
downloadayatana-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/idoentrymenuitem.c')
-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)));