From: Myungjae Lee Date: Fri, 27 Apr 2012 04:43:59 +0000 (+0900) Subject: [entry] fixed bug in non-editable entry selection handlers X-Git-Tag: 2.0_alpha~40 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9e78c863c5dda76f967eaaebc0f0e6ad54e406ef;p=framework%2Fuifw%2Fedje.git [entry] fixed bug in non-editable entry selection handlers Change-Id: If34af22d297c131ffebfe495c60e2aff326f69a1 --- diff --git a/src/lib/edje_entry.c b/src/lib/edje_entry.c index 1e4fe16..b4e75aa 100644 --- a/src/lib/edje_entry.c +++ b/src/lib/edje_entry.c @@ -226,9 +226,7 @@ _edje_focus_in_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, v if (!rp) return; en = rp->entry_data; - if ((!en) || (rp->part->type != EDJE_PART_TYPE_TEXTBLOCK) || - (rp->part->entry_mode < EDJE_ENTRY_EDIT_MODE_EDITABLE)) - return; + if (!en) return; if ((!en->block_handler_top) && (!en->block_handler_btm) && (en->rp->part->select_mode == EDJE_ENTRY_SELECTION_MODE_BLOCK_HANDLE)) @@ -270,6 +268,10 @@ _edje_focus_in_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, v if (en->block_handler_btm) edje_object_signal_emit(en->block_handler_btm, "edje,focus,in", "edje"); + if ((rp->part->type != EDJE_PART_TYPE_TEXTBLOCK) || + (rp->part->entry_mode < EDJE_ENTRY_EDIT_MODE_EDITABLE)) + return; + #ifdef HAVE_ECORE_IMF if (!en->imf_context) return;