summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInHong Han <inhong1.han@samsung.com>2019-12-02 11:40:07 +0900
committerInHong Han <inhong1.han@samsung.com>2019-12-02 11:40:07 +0900
commit6b9819f20325d7570df1e9bb58c77a0a596e76c0 (patch)
tree32595b2d18b2d85452156b67d12023bc8dd593af
parent743a47346bbdb2bce074aa7938c03efd855b0dd3 (diff)
downloadise-engine-default-6b9819f20325d7570df1e9bb58c77a0a596e76c0.tar.gz
ise-engine-default-6b9819f20325d7570df1e9bb58c77a0a596e76c0.tar.bz2
ise-engine-default-6b9819f20325d7570df1e9bb58c77a0a596e76c0.zip
Add missing key for checking if the key event is valid
Change-Id: I476eb2719f43b0b56d2fa35f20f8593440c0d23c
-rw-r--r--src/isf_default_imengine.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/isf_default_imengine.cpp b/src/isf_default_imengine.cpp
index ad53235..b16feb2 100644
--- a/src/isf_default_imengine.cpp
+++ b/src/isf_default_imengine.cpp
@@ -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;