From 6b9819f20325d7570df1e9bb58c77a0a596e76c0 Mon Sep 17 00:00:00 2001 From: InHong Han Date: Mon, 2 Dec 2019 11:40:07 +0900 Subject: Add missing key for checking if the key event is valid Change-Id: I476eb2719f43b0b56d2fa35f20f8593440c0d23c --- src/isf_default_imengine.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3