diff options
author | InHong Han <inhong1.han@samsung.com> | 2019-11-27 14:10:30 +0900 |
---|---|---|
committer | InHong Han <inhong1.han@samsung.com> | 2019-11-27 14:26:17 +0900 |
commit | ed450051d7c3038adf8609b5f7b9d9bb41b5c4bb (patch) | |
tree | c7272b1300350482f6d4018d89c023a6280950a7 | |
parent | 08c65726f08ebec4efaf12cd049b3beb77e6e72d (diff) | |
download | ise-engine-default-ed450051d7c3038adf8609b5f7b9d9bb41b5c4bb.tar.gz ise-engine-default-ed450051d7c3038adf8609b5f7b9d9bb41b5c4bb.tar.bz2 ise-engine-default-ed450051d7c3038adf8609b5f7b9d9bb41b5c4bb.zip |
Modified not to commit invalid text when IME is shown
Change-Id: Iaefe2a5402d9ed500d7c0842132851c9263ee0bd
-rw-r--r-- | src/isf_default_imengine.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/isf_default_imengine.cpp b/src/isf_default_imengine.cpp index db60ea5..ad53235 100644 --- a/src/isf_default_imengine.cpp +++ b/src/isf_default_imengine.cpp @@ -58,6 +58,7 @@ #define DEFAULT_NAME "Multilingual Keyboard" #define UTF8_SIZE 6 +#define SHIFT_ENABLE_KEY_CODE 0x9fe7 #ifndef ISF_DEFAULT_ICON_FILE #define ISF_DEFAULT_ICON_FILE (ISF_ICONDIR "/isf-default.png") @@ -293,7 +294,7 @@ bool DefaultInstance::keypad_process_qwerty(KeyEvent & key) { utf8_wctomb(buf, key.code, UTF8_SIZE); - if (!key.code) return false; + if (!key.code || key.code == SHIFT_ENABLE_KEY_CODE) return false; commit_string(utf8_mbstowcs((char *)buf)); return true; |