edje_entry: prevent incorrect cursor position during preedit 35/244035/3 accepted/tizen/unified/20200917.030601 submit/tizen/20200916.073812
authorBowon Ryu <bowon.ryu@samsung.com>
Mon, 14 Sep 2020 07:51:03 +0000 (16:51 +0900)
committerBowon Ryu <bowon.ryu@samsung.com>
Tue, 15 Sep 2020 09:51:21 +0000 (18:51 +0900)
commit8ff02ea66e44c1f3340dfe4df9c17febad309d7a
tree4665b47ba0dfbaa5ae70f04f431b33e04e93e39c
parent05af76afe208c886b89b5ac47f9564d32b9e8332
edje_entry: prevent incorrect cursor position during preedit

due to the influence of elm_entry_filter_limit_size,
"cursor_pos" from imf and "end_pos - start_pos" may be different.
in particular, if the preedit string can not be entered at all due to filter,
cursor_pos is larger than 0, so the cursor moves to an unintended position.

This patch avoids the issue by moving the cursor's position to end_pos in this case.

@tizen_fix

Change-Id: Ie7ad48ad02ecbf26a0bedab960cd0bf9042a5995
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
src/lib/edje/edje_entry.c