Elm entry: Keep cursor at inserted position after dnd.

Summary:
Keep cursor at inserted position after dnd.

For good user experience, after dnd users expect
the cursor should be at the last inserted position.

@feature

Test Plan: NA

Reviewers: thiepha, herdsman, cedric, tasn

Subscribers: shilpasingh

Differential Revision: https://phab.enlightenment.org/D3267
This commit is contained in:
Subodh Kumar 2015-11-18 11:57:49 +09:00 committed by Thiep Ha
parent 332f1cd626
commit 7f8973ede6
1 changed files with 0 additions and 5 deletions

View File

@ -700,8 +700,6 @@ _drag_drop_cb(void *data EINA_UNUSED,
ELM_ENTRY_DATA_GET(obj, sd);
edje_object_part_text_cursor_copy
(sd->entry_edje, "elm.text", EDJE_CURSOR_MAIN, /*->*/ EDJE_CURSOR_USER);
rv = edje_object_part_text_cursor_coord_set
(sd->entry_edje, "elm.text", EDJE_CURSOR_MAIN, drop->x, drop->y);
@ -709,9 +707,6 @@ _drag_drop_cb(void *data EINA_UNUSED,
rv = _selection_data_cb(NULL, obj, drop);
edje_object_part_text_cursor_copy
(sd->entry_edje, "elm.text", EDJE_CURSOR_USER, /*->*/ EDJE_CURSOR_MAIN);
return rv;
}