edje: pass whole text to IMF in case of selection

Summary:
This patch partially reverts D2951.
_edje_entry_imf_retrieve_surrounding_cb() function has to pass
whole text nearby the entry's cursor. If IMF needs to ignore
selected text when the entry has selection, IMF can check
selected text by calling _edje_entry_imf_retrieve_selection_cb().
So, we don't need remove selected text before passing it to IMF.
@fix

Test Plan: N/A

Reviewers: woohyun, jihoon, subodh6129

Reviewed By: subodh6129

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D4321
This commit is contained in:
Jihoon Kim 2017-06-08 17:02:35 +09:00
parent 829b9aacde
commit 4519a8f923
1 changed files with 1 additions and 16 deletions

View File

@ -4528,23 +4528,8 @@ _edje_entry_imf_retrieve_surrounding_cb(void *data, Ecore_IMF_Context *ctx EINA_
for (itr = plain_text; itr && *itr; ++itr)
*itr = '*';
}
if (en->have_selection)
{
if (en->sel_start)
{
*text = strndup(plain_text,
evas_textblock_cursor_pos_get(en->sel_start));
}
else
{
*text = strdup(plain_text);
}
}
else
{
*text = strdup(plain_text);
}
*text = strdup(plain_text);
free(plain_text);
plain_text = NULL;
}