Pass symcode instead of scancode to IME 49/48149/1
authorLi Zhang <li2012.zhang@samsung.com>
Tue, 15 Sep 2015 06:09:27 +0000 (14:09 +0800)
committerLi Zhang <li2012.zhang@samsung.com>
Tue, 15 Sep 2015 06:25:20 +0000 (14:25 +0800)
Change-Id: Idcfbd5c922681485f629f6dfa963d6ab576694a7

ism/extras/efl_wsc/isf_wsc_context.cpp
ism/extras/efl_wsc/isf_wsc_context.h

index 41124cc..7bff5b7 100644 (file)
@@ -1200,7 +1200,7 @@ isf_wsc_context_autocapital_type_set (WSCContextISF* ctx, Ecore_IMF_Autocapital_
 EAPI void
 isf_wsc_context_filter_key_event (struct weescim *wsc,
                                   uint32_t serial,
-                                  uint32_t timestamp, uint32_t keycode, uint32_t unicode,
+                                  uint32_t timestamp, uint32_t keycode, uint32_t symcode,
                                   char *keyname,
                                   enum wl_keyboard_key_state state)
 
@@ -1210,7 +1210,7 @@ isf_wsc_context_filter_key_event (struct weescim *wsc,
     if (!wsc) return;
 
     Eina_Bool ret = EINA_FALSE;
-    KeyEvent key(keycode, wsc->modifiers);
+    KeyEvent key(symcode, wsc->modifiers);
 
     if (state == WL_KEYBOARD_KEY_STATE_RELEASED) {
         key.mask = SCIM_KEY_ReleaseMask;
index 1e636b0..27bf789 100644 (file)
@@ -32,7 +32,7 @@ typedef struct _WSCContextISFImpl  WSCContextISFImpl;
 
 typedef void (*keyboard_input_key_handler_t)(struct weescim *wsc,
                                              uint32_t serial,
-                                             uint32_t time, uint32_t key, uint32_t unicode,
+                                             uint32_t time, uint32_t keycode, uint32_t symcode,
                                              char *keyname,
                                              enum wl_keyboard_key_state state);