From: Thiep Ha Date: Sat, 29 Jun 2013 03:14:35 +0000 (+0900) Subject: [Entry] Select current word with double click X-Git-Tag: accepted/tizen/20130927.071315^2~95 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b6a83455a5055120af1d7347c28f27c89da46e1b;p=profile%2Fmobile%2Felementary.git [Entry] Select current word with double click Change-Id: Idebde19ac673d820d8559730345b623cb6d3dcb5 --- diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c index 1b5f49d..396097a 100644 --- a/src/lib/elm_entry.c +++ b/src/lib/elm_entry.c @@ -2817,10 +2817,11 @@ _entry_mouse_double_signal_cb(void *data, sd->double_clicked = EINA_TRUE; if (!sd->sel_allow) return; - edje_object_part_text_select_word(sd->entry_edje, "elm.text"); if (!_elm_config->desktop_entry) edje_object_part_text_select_allow_set (sd->entry_edje, "elm.text", EINA_TRUE); + _magnifier_hide(data); + _menu_call(data); ///// evas_object_smart_callback_call(data, SIG_CLICKED_DOUBLE, NULL); } @@ -2831,6 +2832,18 @@ _entry_mouse_triple_signal_cb(void *data, const char *emission __UNUSED__, const char *source __UNUSED__) { + // TIZEN ONLY + ELM_ENTRY_DATA_GET(data, sd); + if (sd->disabled) return; + sd->double_clicked = EINA_TRUE; + if (!sd->sel_allow) return; + + if (!_elm_config->desktop_entry) + edje_object_part_text_select_allow_set + (sd->entry_edje, "elm.text", EINA_TRUE); + _magnifier_hide(data); + _menu_call(data); + ///// evas_object_smart_callback_call(data, SIG_CLICKED_TRIPLE, NULL); }