ecore_imf_example: let immodule know the change of cursor infomation when backspace is pressed

SVN revision: 78735
This commit is contained in:
Jihoon Kim 2012-10-31 23:42:47 +00:00
parent 33a6892763
commit be80050118
1 changed files with 6 additions and 3 deletions

View File

@ -320,9 +320,12 @@ _key_down_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
if (!strcmp(ev->key, "BackSpace"))
{
if (evas_textblock_cursor_char_prev(en->cursor))
evas_textblock_cursor_char_delete(en->cursor);
return;
{
evas_textblock_cursor_char_delete(en->cursor);
/* notify cursor information */
_imf_cursor_info_set(en);
}
return;
}
else if (!strcmp(ev->key, "Delete") ||
(!strcmp(ev->key, "KP_Delete") && !ev->string))