summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorabdulleh Ghujeh <a.ghujeh@samsung.com>2019-08-28 11:22:38 +0000
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-09-05 11:17:05 +0200
commitab2132f8deab59f8ae11c5d5bde33cc8fe86380d (patch)
treeffab13d89871056af53c96b208b6e92fbcef2cbd
parent605d04a302e709692aaa6c9b3d1aa2d76cd2d36e (diff)
efl_ui_text : Clear selection after past on selected text
{F3752242}Select part of a text and past a smaller text on it the selection will still there. Reviewed-by: Tom Hacohen <tom@stosb.com> Differential Revision: https://phab.enlightenment.org/D9766
-rw-r--r--src/lib/elementary/efl_ui_text.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_text.c b/src/lib/elementary/efl_ui_text.c
index 50bc480e8e..4e7004f02b 100644
--- a/src/lib/elementary/efl_ui_text.c
+++ b/src/lib/elementary/efl_ui_text.c
@@ -611,6 +611,8 @@ _selection_data_cb(void *data EINA_UNUSED, Eo *obj,
611 if (!efl_text_cursor_equal(obj, start, end)) 611 if (!efl_text_cursor_equal(obj, start, end))
612 { 612 {
613 efl_canvas_text_range_delete(obj, start, end); 613 efl_canvas_text_range_delete(obj, start, end);
614 EFL_UI_TEXT_DATA_GET(obj, sd);
615 _efl_ui_text_select_none(obj, sd);
614 } 616 }
615 cur = efl_text_cursor_get(obj, EFL_TEXT_CURSOR_GET_TYPE_MAIN); 617 cur = efl_text_cursor_get(obj, EFL_TEXT_CURSOR_GET_TYPE_MAIN);
616 info.insert = EINA_TRUE; 618 info.insert = EINA_TRUE;