Edje_Real_Part *rp = ed->focused_part;
Entry *en;
Ecore_IMF_Event_Commit *ev = event;
- Evas_Textblock_Cursor *tc;
+// Evas_Textblock_Cursor *tc;
Eina_Bool cursor_move = EINA_FALSE;
if (!rp) return ECORE_CALLBACK_PASS_ON;
}
}
- tc = evas_object_textblock_cursor_new(rp->object);
+// tc = evas_object_textblock_cursor_new(rp->object);
/* calculate the cursor position to insert commit string */
+ /*
if (en->preedit_start)
evas_textblock_cursor_copy(en->preedit_start, tc);
else
evas_textblock_cursor_copy(en->cursor, tc);
+ */
/* delete preedit characters */
_preedit_del(en);
_preedit_clear(en);
+ /*
if (evas_textblock_cursor_compare(en->cursor, tc))
cursor_move = EINA_TRUE;
+ */
if (rp->part->entry_mode == EDJE_ENTRY_EDIT_MODE_PASSWORD_SHOW_LAST_CHARACTER)
{
if (en->func(en->data, (void *)ev->str))
return ECORE_CALLBACK_PASS_ON;
- evas_object_textblock_text_markup_prepend(tc, "<password=off>");
- evas_object_textblock_text_markup_prepend(tc, ev->str);
- evas_object_textblock_text_markup_prepend(tc, "</password>");
+ evas_object_textblock_text_markup_prepend(en->cursor, "<password=off>");
+ evas_object_textblock_text_markup_prepend(en->cursor, ev->str);
+ evas_object_textblock_text_markup_prepend(en->cursor, "</password>");
if (en->pw_timer)
{
if (en->func(en->data, ev->str))
return ECORE_CALLBACK_PASS_ON;
- _text_prepend(en, tc, ev->str);
+ _text_prepend(en, en->cursor, ev->str);
//evas_textblock_cursor_text_prepend(en->cursor, ev->str);
/*count characters*/
}
+#if 0
if (!cursor_move)
{
- /* move cursor to the end of commit string */
+ /* move cursor to the end of commit string */
evas_textblock_cursor_copy(tc, en->cursor);
}
evas_textblock_cursor_free(tc);
+#endif
_curs_update_from_curs(en->cursor, rp->object, en);
_anchors_get(en->cursor, rp->object, en);