summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJihoon Kim <jihoon48.kim@samsung.com>2014-11-13 15:36:46 +0900
committerJihoon Kim <jihoon48.kim@samsung.com>2014-11-13 15:36:46 +0900
commit59e0d9712d3bea5ac9e79d853433b1b4924e5cfa (patch)
tree4957f537e7b3aa19247bd865271f05d75b49716a
parent05aee3e3706867605d3b1bb84c3a70ccafba0673 (diff)
downloadefl-59e0d9712d3bea5ac9e79d853433b1b4924e5cfa.tar.gz
Fix bug ecore_imf_context_cursor_position_set was not called when cursor was moved by ECORE_IMF_CALLBACK_SELECTION_SET
@fix
-rw-r--r--src/lib/edje/edje_entry.c21
1 files changed, 13 insertions, 8 deletions
diff --git a/src/lib/edje/edje_entry.c b/src/lib/edje/edje_entry.c
index 61d38b8e90..f2a97ccf90 100644
--- a/src/lib/edje/edje_entry.c
+++ b/src/lib/edje/edje_entry.c
@@ -4333,14 +4333,19 @@ _edje_entry_imf_event_selection_set_cb(void *data, Ecore_IMF_Context *ctx EINA_U
(rp->part->entry_mode < EDJE_ENTRY_EDIT_MODE_SELECTABLE))
return;
- _edje_entry_imf_context_reset(rp);
-
- _sel_clear(ed, en->cursor, rp->object, en);
- evas_textblock_cursor_pos_set(en->cursor, ev->start);
- _sel_enable(ed, en->cursor, rp->object, en);
- _sel_start(en->cursor, rp->object, en);
- evas_textblock_cursor_pos_set(en->cursor, ev->end);
- _sel_extend(ed, en->cursor, rp->object, en);
+ if (ev->start == ev->end)
+ {
+ _edje_entry_cursor_pos_set(rp, EDJE_CURSOR_MAIN, ev->start);
+ }
+ else
+ {
+ _sel_clear(ed, en->cursor, rp->object, en);
+ evas_textblock_cursor_pos_set(en->cursor, ev->start);
+ _sel_enable(ed, en->cursor, rp->object, en);
+ _sel_start(en->cursor, rp->object, en);
+ evas_textblock_cursor_pos_set(en->cursor, ev->end);
+ _sel_extend(ed, en->cursor, rp->object, en);
+ }
_edje_entry_real_part_configure(en->ed, rp);
}