From 24df965c7487c58c0fb2d13bec6b5fb2bd4bf922 Mon Sep 17 00:00:00 2001 From: Sohyun Kim Date: Wed, 18 Aug 2010 18:08:12 +0900 Subject: [PATCH] [elm_datefield]bug related to imf commit signal cb --- src/lib/elm_datefield.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/elm_datefield.c b/src/lib/elm_datefield.c index 92ec64c..99815a5 100755 --- a/src/lib/elm_datefield.c +++ b/src/lib/elm_datefield.c @@ -366,9 +366,10 @@ _imf_event_commit_cb(void *data, int type, void *event) Ecore_IMF_Event_Commit *ev = (Ecore_IMF_Event_Commit *) event; Evas_Object *focus_obj; char str[YEAR_MAX_LENGTH+1] = {0,}; - - if (!wd || !wd->base) return ECORE_CALLBACK_CANCEL; + if (!wd || !wd->base) return ECORE_CALLBACK_RENEW; + if(!elm_widget_focus_get(data)) return ECORE_CALLBACK_RENEW; + focus_obj = elm_widget_focused_object_get(data); if (!wd->editing) { -- 2.7.4