elm_entry: fix focus on text selection

Summary:
Setting focus to entry object when text is being selected

@fix

Test Plan:
1. open "elementary_test entry3"
2. click on the big entry
3. mouse down on singleline entry to start selection
4. move mouse out of window
5. mouse up. text in that entry seems to be selected
6. press del or type any text

expected result: selected text in singleline entry is deleted/replaced
result without this patch: singleline entry is not focused and all edit actions are affecting the big one

Reviewers: cedric, Hermet, seoz

Subscribers: poornima.srinivasan, subodh6129, raster, reutskiy.v.v, herdsman

Differential Revision: https://phab.enlightenment.org/D1476
This commit is contained in:
Andrii Kroitor 2015-03-19 17:43:02 +09:00 committed by Carsten Haitzler (Rasterman)
parent cdae7dedc8
commit 3857bf83ea
1 changed files with 1 additions and 0 deletions

View File

@ -1975,6 +1975,7 @@ _entry_selection_start_signal_cb(void *data,
if (txt && top && (elm_win_window_id_get(top)))
elm_cnp_selection_set(data, ELM_SEL_TYPE_PRIMARY,
ELM_SEL_FORMAT_MARKUP, txt, strlen(txt));
elm_object_focus_set(data, EINA_TRUE);
}
static void