Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions native/cocos/platform/openharmony/OpenHarmonyPlatform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ int ohKeyCodeToCocosKeyCode(OH_NativeXComponent_KeyCode ohKeyCode) {
{KEY_NUMPAD_7, cc::KeyCode::NUMPAD_7},
{KEY_NUMPAD_8, cc::KeyCode::NUMPAD_8},
{KEY_NUMPAD_9, cc::KeyCode::NUMPAD_9},

{KEY_MENU, cc::KeyCode::CONTEXT_MENU},
};
if (keyCodeMap.find(ohKeyCode) != keyCodeMap.end()) {
return int(keyCodeMap[ohKeyCode]);
Expand Down
Loading