-
Creator 版本:3.8.0
-
目标平台:openHarmony
-
重现方式:在游戏脚本中监听键盘事件(onKeyDown),在windows和web平台都可以监听到键盘事件,在openHarmony平台没有
-
问题分析:
查看creator的源码,发现在openHarmonyPlatform.cpp文件只做了touchEvent的监听和分发,没有做keyEvent监听和分发,openHarmony有提供键盘事件的接口: https://developer.harmonyos.com/cn/docs/documentation/doc-references-V3/_o_h___native_x_component-0000001497210885-V3#ZH-CN_TOPIC_0000001523648498__oh_nativexcomponent_getmouseevent
希望可以增加键盘适配
- 手机型号:支持刷openHarmony的设备
- 重现概率:必现