modify code

Signed-off-by: zhaolinglan <zhaolinglan@huawei.com>
This commit is contained in:
zhaolinglan 2022-11-14 20:25:18 +08:00
parent caedce4c41
commit e87a20b265

View File

@ -55,6 +55,7 @@ void InputEventCallback::OnInputEvent(std::shared_ptr<MMI::KeyEvent> keyEvent) c
{
IMSA_HILOGI("InputEventCallback::OnInputEvent");
auto pressKeys = keyEvent->GetPressedKeys();
}
auto it = keyMap_.find(pressKeys);
if (it == keyMap_.end()) {
IMSA_HILOGD("keyEvent undefined");
@ -84,4 +85,4 @@ void InputEventCallback::SetKeyHandle(KeyHandle handle)
} // namespace MiscServices
} // namespace OHOS
#endif //INPUTMETHOD_IMF_INPUT_EVENT_CALLBACK_H
#endif // INPUTMETHOD_IMF_INPUT_EVENT_CALLBACK_H