modify code

Signed-off-by: zhaolinglan <zhaolinglan@huawei.com>
This commit is contained in:
zhaolinglan 2023-01-07 22:25:36 +08:00
parent e6afc32127
commit 0a84fd284b

View File

@ -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;