[entry] hide copypaste ctxpopup when a non-editable entry is unfocused
authorMyungjae Lee <mjae.lee@samsung.com>
Fri, 6 Apr 2012 13:07:57 +0000 (22:07 +0900)
committerMyungjae Lee <mjae.lee@samsung.com>
Fri, 6 Apr 2012 13:07:57 +0000 (22:07 +0900)
Change-Id: I9afc4fc215f60d35b0ec5eff8467eeb6792c07d9

src/lib/elm_entry.c

index 4331d42..8630f50 100644 (file)
@@ -882,7 +882,12 @@ _on_focus_hook(void *data __UNUSED__, Evas_Object *obj)
    Widget_Data *wd = elm_widget_data_get(obj);
    Evas_Object *top = elm_widget_top_get(obj);
    if (!wd) return;
-   if (!wd->editable) return;
+   if (!wd->editable)
+     {
+        if ((!elm_widget_focus_get(obj)) && (wd->api) && (wd->api->obj_hidemenu))
+          wd->api->obj_hidemenu(obj);
+        return;
+     }
    if (elm_widget_focus_get(obj))
      {
         printf("[Elm_entry::Focused] obj : %p\n", obj);