mirror of
https://gitee.com/openharmony/inputmethod_imf
synced 2024-12-18 04:10:21 +00:00
modify code
Signed-off-by: zhaolinglan <zhaolinglan@huawei.com>
This commit is contained in:
parent
e6afc32127
commit
0a84fd284b
@ -59,7 +59,7 @@ void InputEventCallback::OnInputEvent(std::shared_ptr<MMI::KeyEvent> keyEvent) c
|
||||
|
||||
if (keyAction == MMI::KeyEvent::KEY_ACTION_UP) {
|
||||
if (keyHandler_ != nullptr && !isKeyHandled_) {
|
||||
int32_t ret = keyHandler_(keyState_, pressedKeyNums);
|
||||
int32_t ret = keyHandler_(keyState_, pressedKeyNums + 1);
|
||||
IMSA_HILOGI("handle key event ret: %{public}d", ret);
|
||||
}
|
||||
isKeyHandled_ = true;
|
||||
|
Loading…
Reference in New Issue
Block a user