ecore_imf_example: let immodule know the change of cursor infomation when backspace...
authorJihoon Kim <imfine98@gmail.com>
Wed, 31 Oct 2012 23:42:47 +0000 (23:42 +0000)
committerJihoon Kim <imfine98@gmail.com>
Wed, 31 Oct 2012 23:42:47 +0000 (23:42 +0000)
SVN revision: 78735

legacy/ecore/src/examples/ecore_imf_example.c

index 53f3899..0ca080e 100644 (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))