[multibuttonentry] fix bug: if MBE is unfocused and MBE item is added, input panel...
authorBora Hwang <bora1.hwang@samsung.com>
Thu, 23 May 2013 07:26:52 +0000 (16:26 +0900)
committerSungho Kwak <sungho1.kwak@samsung.com>
Wed, 12 Jun 2013 05:12:38 +0000 (14:12 +0900)
Change-Id: I714b4aad86782f9b611dfc0efbbb66a86f59881a

src/lib/elc_multibuttonentry.c

index aaa926b..5dc8bd9 100644 (file)
@@ -464,7 +464,8 @@ _item_adding_effect_add(Evas_Object *obj,
                elm_object_focus_set(sd->entry, EINA_FALSE);
              elm_box_unpack(sd->box, sd->entry);
              evas_object_hide(sd->entry);
-             elm_entry_input_panel_show(sd->entry);
+             if (elm_object_focus_get(WIDGET(it)))
+               elm_entry_input_panel_show(sd->entry);
           }
 
         rect = evas_object_rectangle_add(evas_object_evas_get(obj));
@@ -650,7 +651,8 @@ _item_deleting_effect_add(Evas_Object *obj,
                elm_object_focus_set(sd->entry, EINA_FALSE);
              elm_box_unpack(sd->box, sd->entry);
              evas_object_hide(sd->entry);
-             elm_entry_input_panel_show(sd->entry);
+             if (elm_object_focus_get(WIDGET(it)))
+               elm_entry_input_panel_show(sd->entry);
           }
 
         rect = evas_object_rectangle_add(evas_object_evas_get(obj));