修复编译告警

Signed-off-by: zhouyongfei <zhouyongfei@huawei.com>
This commit is contained in:
zhouyongfei 2022-01-25 22:16:48 +08:00
parent 879cbbe5aa
commit 4cf438a718
2 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ namespace MiscServices {
int mSelectOldEnd = 0;
int mSelectNewBegin = 0;
int mSelectNewEnd = 0;
int mSpecialKeyPress = 0;
int32_t mSpecialKeyPress = 0;
static std::mutex instanceLock_;
static sptr<InputMethodController> instance_;

View File

@ -361,7 +361,7 @@ using namespace MessageID;
int32_t status = keyEvent->GetKeyAction();
if (mSpecialKeyPress != 0) {
if ((code == MMI::KeyEvent::KEYCODE_CTRL_LEFT || code == MMI::KeyEvent::KEYCODE_CTRL_RIGHT) && status == MMI::KeyEvent::KEY_ACTION_UP) {
mSpecailKeyPress--;
mSpecialKeyPress--;
}
return false;
}