From: Li Zhang Date: Tue, 18 Oct 2016 12:40:55 +0000 (+0800) Subject: Flush in case of S/W keyboard needed X-Git-Tag: submit/tizen/20161018.132654~2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0fd0ff840949ee100ce82dba303fd9f54b27d8ec;p=platform%2Fcore%2Fuifw%2Fise-engine-anthy.git Flush in case of S/W keyboard needed Change-Id: Ic7eeece1fcd64d24b9b699c9fe72e16d204a480a --- diff --git a/src/scim_anthy_helper.h b/src/scim_anthy_helper.h index 9af9dd3..4c3b6c3 100755 --- a/src/scim_anthy_helper.h +++ b/src/scim_anthy_helper.h @@ -30,5 +30,7 @@ #define SCIM_ANTHY_TRANS_CMD_TIMEOUT_ADD SCIM_TRANS_CMD_USER_DEFINED + 4 #define SCIM_ANTHY_TRANS_CMD_TIMEOUT_REMOVE SCIM_TRANS_CMD_USER_DEFINED + 5 #define SCIM_ANTHY_TRANS_CMD_TIMEOUT_NOTIFY SCIM_TRANS_CMD_USER_DEFINED + 6 +#define ISE_DEFAULT_FLUSH_EVENT_CMD 1001 + #endif /* __SCIM_ANTHY_HELPER_H__ */ diff --git a/src/scim_anthy_imengine.cpp b/src/scim_anthy_imengine.cpp index 9e8956f..0330f41 100755 --- a/src/scim_anthy_imengine.cpp +++ b/src/scim_anthy_imengine.cpp @@ -2229,6 +2229,11 @@ AnthyInstance::process_helper_event (const String &helper_uuid, return; switch (cmd) { + case ISE_DEFAULT_FLUSH_EVENT_CMD: + { + action_commit (m_factory->m_learn_on_auto_commit); + break; + } case SCIM_ANTHY_TRANS_CMD_GET_SELECTION: { // For reconversion feature, but this code is ad-hoc solution.