From 7df0460e0441988086f2d1575e3f3ed4da517bc0 Mon Sep 17 00:00:00 2001 From: Suman Manjunath Date: Mon, 14 Jan 2008 07:44:26 +0000 Subject: Patch from Suresh Chandrasekharan Fix for bug #264404 (Pass down Enter if in preedit-mode) svn path=/trunk/; revision=34808 --- calendar/ChangeLog | 8 ++++++++ calendar/gui/e-day-view.c | 3 +-- calendar/gui/e-week-view.c | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) (limited to 'calendar') diff --git a/calendar/ChangeLog b/calendar/ChangeLog index e417161b15..81e46340e6 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,11 @@ +2008-01-14 Suresh Chandrasekharan + + ** Fix for bug #264404 + + * gui/e-day-view.c (e_day_view_on_text_item_event): + * gui/e-week-view.c (e_week_view_on_text_item_event): + Pass down Enter if in preedit-mode. + 2008-01-11 Srinivasa Ragavan ** Fix for bug #508731 diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c index cb5743e3b3..9e90ed1ea1 100644 --- a/calendar/gui/e-day-view.c +++ b/calendar/gui/e-day-view.c @@ -7127,8 +7127,7 @@ e_day_view_on_text_item_event (GnomeCanvasItem *item, switch (event->type) { case GDK_KEY_PRESS: tooltip_destroy (day_view, item); - if (event && event->key.keyval == GDK_Return) { - day_view->resize_event_num = -1; + if (!E_TEXT (item)->preedit_len && event && event->key.keyval == GDK_Return) { day_view->resize_event_num = -1; /* We set the keyboard focus to the EDayView, so the diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c index c7004cbbd1..b6254750a9 100644 --- a/calendar/gui/e-week-view.c +++ b/calendar/gui/e-week-view.c @@ -3061,7 +3061,7 @@ e_week_view_on_text_item_event (GnomeCanvasItem *item, switch (gdkevent->type) { case GDK_KEY_PRESS: tooltip_destroy (week_view, item); - if (gdkevent && gdkevent->key.keyval == GDK_Return) { + if (!E_TEXT (item)->preedit_len && gdkevent && gdkevent->key.keyval == GDK_Return) { /* We set the keyboard focus to the EDayView, so the EText item loses it and stops the edit. */ gtk_widget_grab_focus (GTK_WIDGET (week_view)); -- cgit