Improve code to check key state 61/54661/2
authorJihoon Kim <jihoon48.kim@samsung.com>
Thu, 17 Dec 2015 04:39:48 +0000 (13:39 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Thu, 17 Dec 2015 05:23:26 +0000 (14:23 +0900)
Change-Id: Ia2deb1b874cab6ea20c55346322420885d4d38ae

ism/extras/efl_wsc/isf_wsc_context.cpp

index 1683ead..8892cbc 100644 (file)
@@ -1254,8 +1254,7 @@ isf_wsc_context_filter_key_event (struct weescim *wsc,
     if (state == WL_KEYBOARD_KEY_STATE_RELEASED) {
         key.mask = SCIM_KEY_ReleaseMask;
     }
-
-    if (state == WL_KEYBOARD_KEY_STATE_PRESSED) {
+    else if (state == WL_KEYBOARD_KEY_STATE_PRESSED) {
         if (!ignore_key) {
             /* Hardware input detect code */
 #ifdef _TV