Fix bug some characters aren't inputted 67/33567/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Wed, 23 Jul 2014 08:52:20 +0000 (17:52 +0900)
committerLi Zhang <li2012.zhang@samsung.com>
Tue, 13 Jan 2015 08:03:45 +0000 (16:03 +0800)
[model] Kiran, Higgs
[binary_type] PDA
[customer] OPEN
[issue#] N/A
[problem] some characters aren'ts inputted
[cause] bug of logic to check key event
[solution] Fix logic to check key event
[team] Input Framework
[request] N/A
[horizontal_expansion] N/A

Change-Id: I8c595b3b37dc02d3b7b560592ac3e68fd948a092

ism/extras/efl_immodule/isf_imf_context.cpp

index 1e2c7d8..d78ea9a 100644 (file)
@@ -2307,8 +2307,10 @@ feed_key_event (EcoreIMFContextISF *ic, const KeyEvent &key, bool fake)
 {
     SCIM_DEBUG_FRONTEND(1) << __FUNCTION__ << "...\n";
 
-    String keyname;
-    if (scim_key_to_string (keyname, key)){
+    if (key.code <= 0x7F ||
+        (key.code >= SCIM_KEY_BackSpace && key.code <= SCIM_KEY_Delete) ||
+        (key.code >= SCIM_KEY_Home && key.code <= SCIM_KEY_Hyper_R)) {
+        // ascii code and function keys
         send_x_key_event (key, fake);
         return EINA_TRUE;
     } else {