Revert "Revert "elm_entry: show context menu when entry is longpressed without focusing"" 41/115141/1
authorTaehyub Kim <taehyub.kim@samsung.com>
Thu, 16 Feb 2017 11:26:13 +0000 (20:26 +0900)
committerTaehyub Kim <taehyub.kim@samsung.com>
Thu, 16 Feb 2017 11:26:56 +0000 (20:26 +0900)
This reverts commit 85efc0ebd9460c37068951e58b8ad590409dc488.

Change-Id: Ied9714577ecf0e110f2758e1a3e346205fbfdeaa

src/lib/elm_entry.c
src/modules/copypasteUI_ctxpopup/copypaste.c

index d9d3ec3..e911c2d 100644 (file)
@@ -2926,10 +2926,6 @@ _long_press_cb(void *data)
    ELM_ENTRY_DATA_GET(data, sd);
 
    // TIZEN ONLY: START ////////////////////////////////////////////
-   if (!elm_widget_focus_get(data))
-     {
-        goto signal_longpress;
-     }
    // 20150229: Add drag feature.
    Eina_Bool hit_selection = EINA_FALSE;
 
index 0fda844..f78377f 100644 (file)
@@ -1242,8 +1242,7 @@ obj_longpress(Evas_Object *obj)
    if (ext_mod->viewport_rect)
      eina_rectangle_free(ext_mod->viewport_rect);
    elm_entry_extension_module_data_get(obj, ext_mod);
-   has_focused = elm_widget_focus_get(obj);
-   if (ext_mod->context_menu && has_focused)
+   if (ext_mod->context_menu)
      {
         Eina_List *lao = NULL;
         Evas_Object *ao = NULL;