aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-09-20 12:11:22 +0000
committerTarmac <Unknown>2012-09-20 12:11:22 +0000
commitb98fedd461b745fb2ed694f540017afd41824756 (patch)
tree93041e286cf840ecca130fe5e513c5bb7cf8b47e
parent63717ffcbab6c083f8e8fc782753735701fbae26 (diff)
parent20fe9d4cbf2543f4b79ee64ca63ff44fbd01ae3e (diff)
downloadayatana-ido-b98fedd461b745fb2ed694f540017afd41824756.tar.gz
ayatana-ido-b98fedd461b745fb2ed694f540017afd41824756.tar.bz2
ayatana-ido-b98fedd461b745fb2ed694f540017afd41824756.zip
the calendar widget shouldn't eat the ESC key.. Fixes: https://bugs.launchpad.net/bugs/964005. Approved by Lars Uebernickel, jenkins.
-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;