forked from enlightenment/efl
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:
parent
605d04a302
commit
ab2132f8de
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue