Revert "Revert "elm_entry: show context menu when entry is longpressed without focusing" 33/115133/1
authorTaehyub Kim <taehyub.kim@samsung.com>
Thu, 16 Feb 2017 11:08:30 +0000 (20:08 +0900)
committerTaehyub Kim <taehyub.kim@samsung.com>
Thu, 16 Feb 2017 11:10:25 +0000 (20:10 +0900)
This reverts commit b203e39421ad8b4e514d187ca9e3847859d0fa3f.

Change-Id: Id1ade19765bb096b68f8f08c87a1661a6692a480

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

index cc87f425721c27f616a6dc1cc64ccb41a6ad7451..d3211745b9844bbf7a4bb487adad0e28fe1aaa71 100644 (file)
@@ -2949,10 +2949,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 1bda8507b513e0a390f55f06397e956bd3a8010e..a7bf7b866d9dec7ab2355a080acc58b93bf6d4d6 100644 (file)
@@ -1254,8 +1254,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;