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
This commit is contained in:
abdulleh Ghujeh 2019-08-28 11:22:38 +00:00 committed by Marcel Hollerbach
parent 605d04a302
commit ab2132f8de
1 changed files with 2 additions and 0 deletions

View File

@ -611,6 +611,8 @@ _selection_data_cb(void *data EINA_UNUSED, Eo *obj,
if (!efl_text_cursor_equal(obj, start, end))
{
efl_canvas_text_range_delete(obj, start, end);
EFL_UI_TEXT_DATA_GET(obj, sd);
_efl_ui_text_select_none(obj, sd);
}
cur = efl_text_cursor_get(obj, EFL_TEXT_CURSOR_GET_TYPE_MAIN);
info.insert = EINA_TRUE;