[Edje] Update anchor and item tags when text is deleted by _edje_entry_imf_event_delete_surrounding_cb.
Summary: Anchor and item tags should be updated when text is changed. In _edje_entry_imf_event_delete_surrounding_cb function, the text is changed by "evas_textblock_cursor_range_delete" API and there was no update about anchor and item tags. It can result that the tags hang in the air after deleting. Reviewers: tasn, woohyun, seoz, jihoon Reviewed By: tasn CC: cedric Differential Revision: https://phab.enlightenment.org/D368
This commit is contained in:
parent
236c9a1520
commit
f374815a3e
|
@ -4128,6 +4128,8 @@ _edje_entry_imf_event_delete_surrounding_cb(void *data, Ecore_IMF_Context *ctx E
|
|||
evas_textblock_cursor_pos_set(del_end, cursor_pos + ev->offset + ev->n_chars);
|
||||
|
||||
evas_textblock_cursor_range_delete(del_start, del_end);
|
||||
_anchors_get(en->cursor, rp->object, en);
|
||||
_anchors_update(en->cursor, rp->object, en);
|
||||
|
||||
evas_textblock_cursor_free(del_start);
|
||||
evas_textblock_cursor_free(del_end);
|
||||
|
|
Loading…
Reference in New Issue