[multibuttonentry] P130514-2632: if MBE doesn't have focus, entry of MBE should lose...
authorBora Hwang <bora1.hwang@samsung.com>
Wed, 15 May 2013 06:32:23 +0000 (15:32 +0900)
committerSungho Kwak <sungho1.kwak@samsung.com>
Wed, 12 Jun 2013 05:00:23 +0000 (14:00 +0900)
src/lib/elc_multibuttonentry.c

index 22674ee..557eb66 100644 (file)
@@ -866,6 +866,8 @@ _layout_shrink(Evas_Object *obj,
 
              if (sd->editable)
                {
+                  if (elm_object_focus_get(sd->entry))
+                    elm_object_focus_set(sd->entry, EINA_FALSE);
                   elm_box_unpack(sd->box, sd->entry);
                   evas_object_hide(sd->entry);
                }
@@ -960,6 +962,8 @@ _layout_shrink(Evas_Object *obj,
                   linew += mnw;
                   if (linew > (w * (2 / 3)))
                     {
+                       if (elm_object_focus_get(sd->entry))
+                         elm_object_focus_set(sd->entry, EINA_FALSE);
                        elm_box_unpack(sd->box, sd->entry);
                        evas_object_hide(sd->entry);
                        sd->expanded_state = EINA_FALSE;