summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSubodh Kumar <s7158.kumar@samsung.com>2015-08-05 11:02:53 +0100
committerTom Hacohen <tom@stosb.com>2015-08-05 11:02:53 +0100
commit20822f2008bbd3460467154b5cfd1eeaae403dc7 (patch)
treefd56124dfc167ad664326244264b4e803a0ca3ad
parentcf1bd7e1babd46bb27d7e103cb8a1ecde5e2fd03 (diff)
Edje entry: Fix to delete selection when preedit status has not ended.
Summary: Fix to delete selection when preedit status has not ended In preedit mode when selection is made and input any letter, there is duplicate character appeared because the selection is cleared when commit happens so delete the selection in preedit last stage. @fix Test Plan: Test in Tizen devices. Reviewers: woohyun, id213sin, shilpasingh, tasn Subscribers: rajeshps, cedric, govi Differential Revision: https://phab.enlightenment.org/D2837
-rw-r--r--src/lib/edje/edje_entry.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/edje/edje_entry.c b/src/lib/edje/edje_entry.c
index c095f1621d..bcdeea9811 100644
--- a/src/lib/edje/edje_entry.c
+++ b/src/lib/edje/edje_entry.c
@@ -4226,6 +4226,9 @@ _edje_entry_imf_event_preedit_changed_cb(void *data, Ecore_IMF_Context *ctx EINA
4226 if (!strcmp(preedit_string, "")) 4226 if (!strcmp(preedit_string, ""))
4227 preedit_end_state = EINA_TRUE; 4227 preedit_end_state = EINA_TRUE;
4228 4228
4229 if (en->have_selection && !preedit_end_state)
4230 _range_del_emit(ed, en->cursor, rp->object, en);
4231
4229 /* delete preedit characters */ 4232 /* delete preedit characters */
4230 _preedit_del(en); 4233 _preedit_del(en);
4231 4234