entry/cnpui: remove Copy-paste popup on elm_entry_select_none API call 41/78241/1 accepted/tizen/common/20160706.141723 accepted/tizen/ivi/20160705.101640 accepted/tizen/mobile/20160705.101803 accepted/tizen/tv/20160705.101650 accepted/tizen/wearable/20160705.101708 submit/tizen/20160705.081032
authorThiep Ha <thiep.ha@samsung.com>
Tue, 5 Jul 2016 00:34:01 +0000 (09:34 +0900)
committerThiep Ha <thiep.ha@samsung.com>
Tue, 5 Jul 2016 00:34:01 +0000 (09:34 +0900)
This fixes the bug where CnP popup remains after selection is cleared,
like do selection, press back key.
@tizen_only

Change-Id: Icc5a73bc179f2807ea6085164570e5ceada00947
Signed-off-by: Thiep Ha <thiep.ha@samsung.com>
src/lib/elm_entry.c

index f362320..b1ef01c 100644 (file)
@@ -5548,11 +5548,13 @@ _elm_entry_select_none(Eo *obj EINA_UNUSED, Elm_Entry_Data *sd)
             (sd->entry_edje, "elm.text", EINA_FALSE);
         edje_object_signal_emit(sd->entry_edje, "elm,state,select,off", "elm");
      }
-   if (sd->have_selection)
+   // TIZEN ONLY (20150714) obj_hidemenu() is getting called from _entry_selection_cleared_signal_cb()
+   /*if (sd->have_selection)
      eo_do(obj, eo_event_callback_call
        (EVAS_SELECTABLE_INTERFACE_EVENT_SELECTION_CLEARED, NULL));
 
-   sd->have_selection = EINA_FALSE;
+   sd->have_selection = EINA_FALSE;*/
+   //
    edje_object_part_text_select_none(sd->entry_edje, "elm.text");
 
    _hide_selection_handler(obj);