harmony 鸿蒙native_key_event.h
native_key_event.h
Overview
Declares the APIs of NativeKeyEvent.
Library: libace_ndk.z.so
File to include:
System capability: SystemCapability.ArkUI.ArkUI.Full
Since: 14
Related module: ArkUI_NativeModule
Summary
Enums
Functions
Name | Description |
---|---|
ArkUI_KeyEventType OH_ArkUI_KeyEvent_GetType (const ArkUI_UIInputEvent *event) | Obtains the type of a key event. |
int32_t OH_ArkUI_KeyEvent_GetKeyCode (const ArkUI_UIInputEvent *event) | Obtains the key code from a key event. |
const char * OH_ArkUI_KeyEvent_GetKeyText (const ArkUI_UIInputEvent *event) | Obtains the key value from a key event. |
ArkUI_KeySourceType OH_ArkUI_KeyEvent_GetKeySource (const ArkUI_UIInputEvent *event) | Obtains the type of input device that triggers a key event. |
void OH_ArkUI_KeyEvent_StopPropagation (const ArkUI_UIInputEvent *event, bool stopPropagation) | Stops a key event from bubbling upwards or downwards. |
ArkUI_KeyIntension OH_ArkUI_KeyEvent_GetKeyIntensionCode (const ArkUI_UIInputEvent *event) | Obtains the intention code associated with a key event. |
uint32_t OH_ArkUI_KeyEvent_GetUnicode (const ArkUI_UIInputEvent *event) | Obtains the Unicode value of a key event. Non-space basic Latin characters in the 0x0021-0x007E range are supported. Characters with a value of 0 are not supported. In the case of key combination, this API returns the Unicode value of the key corresponding to the key event. |
void OH_ArkUI_KeyEvent_SetConsumed (const ArkUI_UIInputEvent *event, bool isConsumed) | Sets whether a key event is consumed in the key event callback. |
void OH_ArkUI_KeyEvent_Dispatch (ArkUI_NodeHandle *node, const ArkUI_UIInputEvent *event) | Dispatches a key event to a specific node. |
你可能感兴趣的鸿蒙文章
harmony 鸿蒙ARKUI_TextPickerCascadeRangeContent
harmony 鸿蒙ARKUI_TextPickerRangeContent
harmony 鸿蒙ArkUI_AnimateCompleteCallback
harmony 鸿蒙ArkUI_ContextCallback
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦