elm_entry: show context menu when entry is longpressed without focusing
authorTaehyub Kim <taehyub.kim@samsung.com>
Tue, 15 Nov 2016 04:06:43 +0000 (13:06 +0900)
committerJinYong Park <j4939.park@samsung.com>
Tue, 22 Nov 2016 10:46:57 +0000 (19:46 +0900)
@tizen_fix

Change-Id: Ibbe6c270f250542c96aebf3b8bcabea24defa6db

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

index b74a24a..79e6aa2 100644 (file)
@@ -2868,10 +2868,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 74a83f5..c5288a9 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;