Module native_key_event

Module native_key_event 

Source
Available on crate feature api-14 only.

Structs§

ArkUI_KeyCode
Defines an enum for the key codes in key events.
ArkUI_KeyEventType
Defines an enum for the key event types.
ArkUI_KeyIntension
Defines an enum for key intentions.
ArkUI_KeySourceType
Defines an enum for the types of devices that trigger a key event.

Functions§

OH_ArkUI_KeyEvent_Dispatchapi-15
Dispatch key event to a specific component node.
OH_ArkUI_KeyEvent_GetKeyCode
Obtains the key code from a key event.
OH_ArkUI_KeyEvent_GetKeyIntensionCode
Obtains the intention code associated with a key event.
OH_ArkUI_KeyEvent_GetKeySource
Obtains the type of device that triggers a key event.
OH_ArkUI_KeyEvent_GetKeyText
Obtains the key value from a key event.
OH_ArkUI_KeyEvent_GetType
Obtains the type of a key event.
OH_ArkUI_KeyEvent_GetUnicode
Obtains the Unicode value associated with 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.
OH_ArkUI_KeyEvent_IsCapsLockOnapi-19
Get the Caps Lock state of the key event.
OH_ArkUI_KeyEvent_IsNumLockOnapi-19
Get the Num Lock state of the key event.
OH_ArkUI_KeyEvent_IsScrollLockOnapi-19
Get the Scroll Lock state of the key event.
OH_ArkUI_KeyEvent_SetConsumed
Sets whether a key event is consumed in the key event callback.
OH_ArkUI_KeyEvent_StopPropagation
Prevents a key event from bubbling up.