Add missing key for checking if the key event is valid 58/219058/1
authorInHong Han <inhong1.han@samsung.com>
Mon, 2 Dec 2019 02:40:07 +0000 (11:40 +0900)
committerInHong Han <inhong1.han@samsung.com>
Mon, 2 Dec 2019 02:40:07 +0000 (11:40 +0900)
Change-Id: I476eb2719f43b0b56d2fa35f20f8593440c0d23c

src/isf_default_imengine.cpp

index ad5323520faba1a313e9d17901466bc9c846f1c8..b16feb296bca1e5ed18cbf9ecada0f7066f18ac2 100644 (file)
@@ -59,6 +59,7 @@
 
 #define UTF8_SIZE                       6
 #define SHIFT_ENABLE_KEY_CODE           0x9fe7
+#define SHIFT_DISABLE_KEY_CODE          0x9fe8
 
 #ifndef ISF_DEFAULT_ICON_FILE
 #define ISF_DEFAULT_ICON_FILE           (ISF_ICONDIR "/isf-default.png")
@@ -294,7 +295,7 @@ bool DefaultInstance::keypad_process_qwerty(KeyEvent & key) {
 
        utf8_wctomb(buf, key.code, UTF8_SIZE);
 
-       if (!key.code || key.code == SHIFT_ENABLE_KEY_CODE) return false;
+       if (!key.code || key.code == SHIFT_ENABLE_KEY_CODE || key.code == SHIFT_DISABLE_KEY_CODE) return false;
 
        commit_string(utf8_mbstowcs((char *)buf));
        return true;