Eina_Bool control, alt, shift;
Eina_Bool multiline;
Eina_Bool cursor_changed;
- Evas_Textblock_Cursor *tc;
+ int old_cur_pos;
if (!rp) return;
en = rp->entry_data;
if ((!en) || (rp->part->type != EDJE_PART_TYPE_TEXTBLOCK) ||
}
#endif /* HAVE_ECORE_IMF */
- tc = evas_object_textblock_cursor_new(rp->object);
- evas_textblock_cursor_copy(en->cursor, tc);
+ old_cur_pos = evas_textblock_cursor_pos_get(en->cursor);
control = evas_key_modifier_is_set(ev->modifiers, "Control");
alt = evas_key_modifier_is_set(ev->modifiers, "Alt");
_caps_mode_check(en);
}
}
-
- if ((evas_textblock_cursor_compare(tc, en->cursor)) && (!cursor_changed))
- _edje_emit(ed, "cursor,changed", rp->part->name);
- evas_textblock_cursor_free(tc);
-
+ if ((old_cur_pos != evas_textblock_cursor_pos_get(en->cursor)) && (!cursor_changed))
+ _edje_emit(ed, "cursor,changed", rp->part->name);
+
#ifdef HAVE_ECORE_IMF
if (en->imf_context)
{