summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/examples/ecore_imf_example.c
diff options
context:
space:
mode:
authorJihoon Kim <imfine98@gmail.com>2012-10-31 23:42:47 +0000
committerJihoon Kim <imfine98@gmail.com>2012-10-31 23:42:47 +0000
commitbe80050118c5bffdb8351061cf772c94c7662ab8 (patch)
treef1d72ed5d765b74ddcf1308524f50b2c5c81c4e6 /legacy/ecore/src/examples/ecore_imf_example.c
parent33a689276343970f97d42d54aab6bc2c823cc0c5 (diff)
ecore_imf_example: let immodule know the change of cursor infomation when backspace is pressed
SVN revision: 78735
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/examples/ecore_imf_example.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/legacy/ecore/src/examples/ecore_imf_example.c b/legacy/ecore/src/examples/ecore_imf_example.c
index 53f3899146..0ca080e3b5 100644
--- a/legacy/ecore/src/examples/ecore_imf_example.c
+++ b/legacy/ecore/src/examples/ecore_imf_example.c
@@ -320,9 +320,12 @@ _key_down_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
320 if (!strcmp(ev->key, "BackSpace")) 320 if (!strcmp(ev->key, "BackSpace"))
321 { 321 {
322 if (evas_textblock_cursor_char_prev(en->cursor)) 322 if (evas_textblock_cursor_char_prev(en->cursor))
323 evas_textblock_cursor_char_delete(en->cursor); 323 {
324 324 evas_textblock_cursor_char_delete(en->cursor);
325 return; 325 /* notify cursor information */
326 _imf_cursor_info_set(en);
327 }
328 return;
326 } 329 }
327 else if (!strcmp(ev->key, "Delete") || 330 else if (!strcmp(ev->key, "Delete") ||
328 (!strcmp(ev->key, "KP_Delete") && !ev->string)) 331 (!strcmp(ev->key, "KP_Delete") && !ev->string))