[entry] fixed bug in non-editable entry selection handlers
authorMyungjae Lee <mjae.lee@samsung.com>
Fri, 27 Apr 2012 04:43:59 +0000 (13:43 +0900)
committerMyungjae Lee <mjae.lee@samsung.com>
Fri, 27 Apr 2012 04:43:59 +0000 (13:43 +0900)
Change-Id: If34af22d297c131ffebfe495c60e2aff326f69a1

src/lib/edje_entry.c

index 1e4fe16..b4e75aa 100644 (file)
@@ -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;