harmony 鸿蒙Multimodal Subsystem Changelog
Multimodal Subsystem Changelog
cl.multimodalinput.1 Permission Change of the OH_Input_GetKeyState API in the oh_input_manager.h File
Access Level
Public API
Reason for Change
According to the security requirements, the keys that can be queried by the OH_Input_GetKeyState API are restricted to the range of keys that cannot be entered.
Change Impact
This change is a non-compatible change. Before change: The API can query keys that can or cannot be entered. After change: The API can query only the keys that cannot be entered. When the keys that can be entered are queried, error code 401 is returned.
Start API Level
12
Change Since
OpenHarmony SDK 5.0.0.38
Key API/Component Changes
API | Before Change | After Change |
---|---|---|
Input_Result OH_Input_GetKeyState(struct Input_KeyState* keyState); | All keys can be queried. | Only keys that cannot be entered can be queried. |
Adaptation Guide
Use the API to query only the keys that cannot be entered.
你可能感兴趣的鸿蒙文章
harmony 鸿蒙ArkTS Subsystem Changelog
harmony 鸿蒙Resource Scheduler Subsystem Changelog
harmony 鸿蒙Distributed Data Management Changelog
harmony 鸿蒙Media Subsystem Changelog
harmony 鸿蒙Network Subsystem Changelog
harmony 鸿蒙Screen Lock Changelog
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
7、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦