Revert "entry: disable text selection by user interaction if elm_entry_select_allow_s... 60/164460/1 accepted/tizen/4.0/unified/20171219.235813 submit/here/20171219.094438 submit/tizen_4.0/20171219.100146
authorYoungbok Shin <youngb.shin@samsung.com>
Tue, 19 Dec 2017 07:05:48 +0000 (16:05 +0900)
committerYoungbok Shin <youngb.shin@samsung.com>
Tue, 19 Dec 2017 07:05:53 +0000 (16:05 +0900)
This reverts commit a11b7e7b5eb67b701b72d1354afef9c32cc4bb0d.

Change-Id: I47ac1d84c1bbad7f21380aaad7adcfeb8f613fa8

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

index aad5e0a0035b0a3ed1d586e6823a66cfeec4e0c6..d70db1b1909be1ca40ed30898866a877591077ba 100644 (file)
@@ -627,10 +627,6 @@ _select_all(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUS
 {
    ELM_ENTRY_DATA_GET(data, sd);
 
-   /* TIZEN_ONLY(20171213): disable text selection by user interaction if elm_entry_select_allow_set() is called with EINA_FALSE */
-   if (!sd->sel_allow) return;
-   /* END */
-
    sd->sel_mode = EINA_TRUE;
 
    if (edje_object_part_text_selection_get(sd->entry_edje, "elm.text") == NULL)
@@ -730,10 +726,6 @@ _select_word(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_i
    Evas_Textblock_Cursor *cur = NULL;
    int pos = 0;
 
-   /* TIZEN_ONLY(20171213): disable text selection by user interaction if elm_entry_select_allow_set() is called with EINA_FALSE */
-   if (!sd->sel_allow) return;
-   /* END */
-
    sd->sel_mode = EINA_TRUE;
 
    _adjust_eol_cursor(data);
@@ -2464,11 +2456,7 @@ _hover_dismissed_cb(void *data,
    if (sd->hoversel) evas_object_hide(sd->hoversel);
    if (sd->sel_mode)
      {
-        /* TIZEN_ONLY(20171213): disable text selection by user interaction if elm_entry_select_allow_set() is called with EINA_FALSE
         if (!_elm_config->desktop_entry)
-         */
-        if (sd->sel_allow && !_elm_config->desktop_entry)
-        /* END */
           {
              if (!sd->password)
                edje_object_part_text_select_allow_set
@@ -4828,7 +4816,7 @@ _start_handler_mouse_down_cb(void *data,
    // TIZEN ONLY (20150205): Support CopyPasteUI
    if ((sd->api) && (sd->api->obj_hidemenu))
      sd->api->obj_hidemenu(data);
-   if (sd->sel_allow && !_elm_config->desktop_entry)
+   if (!_elm_config->desktop_entry)
         edje_object_part_text_select_allow_set(sd->entry_edje, "elm.text",
                                                EINA_TRUE);
    //
@@ -5036,7 +5024,7 @@ _end_handler_mouse_down_cb(void *data,
    // TIZEN ONLY (20150205): Support CopyPasteUI
    if ((sd->api) && (sd->api->obj_hidemenu))
      sd->api->obj_hidemenu(data);
-   if (sd->sel_allow && !_elm_config->desktop_entry)
+   if (!_elm_config->desktop_entry)
         edje_object_part_text_select_allow_set(sd->entry_edje, "elm.text",
                                                EINA_TRUE);
    //
index 821b8ea6b272e8db785d235ab1bf283a5025ed91..d3696eecb06096f9b254965069b7bbb28002b7ad 100644 (file)
@@ -1332,7 +1332,7 @@ obj_longpress(Evas_Object *obj)
 
         if (!ext_mod->selmode && !ext_mod->have_selection)
           {
-             if (!elm_entry_is_empty(obj) && elm_entry_select_allow_get(obj))
+             if (!elm_entry_is_empty(obj))
                {
                  if (!ext_mod->password)
                    {
@@ -1450,7 +1450,7 @@ obj_longpress(Evas_Object *obj)
                 {
                    Eina_Bool selected_all = EINA_TRUE;
                    ext_mod->is_selected_all(&selected_all, obj, NULL);
-                   if ((selected_all == EINA_FALSE) && elm_entry_select_allow_get(obj))
+                   if (selected_all == EINA_FALSE)
                      {
                         CP_ICON_ADD(icon, "select_all");
                         if (ext_mod->profile_wear)
@@ -1546,7 +1546,7 @@ obj_longpress(Evas_Object *obj)
               else
                 {
                    _cancel(obj,ext_mod->popup,NULL);
-                   if (!elm_entry_is_empty(obj) && elm_entry_select_allow_get(obj))
+                   if (!elm_entry_is_empty(obj))
                      {
                        if (!ext_mod->password)
                          {