aboutsummaryrefslogtreecommitdiff
path: root/src/idocalendarmenuitem.c
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-09-19 23:32:58 -0500
committerCharles Kerr <charles.kerr@canonical.com>2012-09-19 23:32:58 -0500
commit20fe9d4cbf2543f4b79ee64ca63ff44fbd01ae3e (patch)
tree93041e286cf840ecca130fe5e513c5bb7cf8b47e /src/idocalendarmenuitem.c
parent63717ffcbab6c083f8e8fc782753735701fbae26 (diff)
downloadayatana-ido-20fe9d4cbf2543f4b79ee64ca63ff44fbd01ae3e.tar.gz
ayatana-ido-20fe9d4cbf2543f4b79ee64ca63ff44fbd01ae3e.tar.bz2
ayatana-ido-20fe9d4cbf2543f4b79ee64ca63ff44fbd01ae3e.zip
the calendar widget shouldn't eat the ESC key.
Diffstat (limited to 'src/idocalendarmenuitem.c')
-rw-r--r--src/idocalendarmenuitem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/idocalendarmenuitem.c b/src/idocalendarmenuitem.c
index 84bee80..baae342 100644
--- a/src/idocalendarmenuitem.c
+++ b/src/idocalendarmenuitem.c
@@ -172,7 +172,8 @@ ido_calendar_menu_item_key_press (GtkWidget *widget,
gtk_widget_grab_focus (calendar);
}
- return event->keyval != GDK_KEY_Return;
+ return (event->keyval != GDK_KEY_Return) &&
+ (event->keyval != GDK_KEY_Escape);
}
return FALSE;