Available on crate feature
api-14 only.Structs§
- ArkUI_
KeyCode - Defines an enum for the key codes in key events.
- ArkUI_
KeyEvent Type - Defines an enum for the key event types.
- ArkUI_
KeyIntension - Defines an enum for key intentions.
- ArkUI_
KeySource Type - Defines an enum for the types of devices that trigger a key event.
Functions§
- OH_
ArkUI_ ⚠KeyEvent_ Dispatch api-15 - Dispatch key event to a specific component node.
- OH_
ArkUI_ ⚠KeyEvent_ GetKey Code - Obtains the key code from a key event.
- OH_
ArkUI_ ⚠KeyEvent_ GetKey Intension Code - Obtains the intention code associated with a key event.
- OH_
ArkUI_ ⚠KeyEvent_ GetKey Source - Obtains the type of device that triggers a key event.
- OH_
ArkUI_ ⚠KeyEvent_ GetKey Text - 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_ IsCaps Lock On api-19 - Get the Caps Lock state of the key event.
- OH_
ArkUI_ ⚠KeyEvent_ IsNum Lock On api-19 - Get the Num Lock state of the key event.
- OH_
ArkUI_ ⚠KeyEvent_ IsScroll Lock On api-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_ Stop Propagation - Prevents a key event from bubbling up.