diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index 47d472b70b31d2921ec9abba496e38bc862a0f59..9e2ef9e937726dd6d08f099348379bdabcd49258 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -1868,6 +1868,17 @@ typedef enum { * @since 16 */ NODE_BACKDROP_BLUR = 99, + + /** + *@brief Sets the next focus node. + * + * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute: \n + * .value[0].i32: focus movement direction, as defined in {@link ArkUI_FocusMove}. + * .object: next focus node. The parameter type is {@link ArkUI_NodeHandle}.\n + * \n + * + */ + NODE_NEXT_FOCUS = 100, /** * @brief Defines the text content attribute, which can be set, reset, and obtained as required through APIs. diff --git a/arkui/ace_engine/native/native_type.h b/arkui/ace_engine/native/native_type.h index b95363f87317ca06ecb77f24ce7801c9b6be2b85..fd91ffb9b45bf9cd0529807f7bde229608bceb76 100644 --- a/arkui/ace_engine/native/native_type.h +++ b/arkui/ace_engine/native/native_type.h @@ -2468,6 +2468,26 @@ typedef enum { ARKUI_SAFE_AREA_EDGE_END = 1 << 3, } ArkUI_SafeAreaEdge; +/** + * @brief Define an enum for the focus movement directions. + * + * @since 16 +*/ +typedef enum { + /** Move focus forward. */ + ARKUI_FOCUS_MOVE_FORWARD = 0, + /** Move focus backward. */ + ARKUI_FOCUS_MOVE_BACKWARD, + /** Move focus up. */ + ARKUI_FOCUS_MOVE_UP, + /** Move focus down. */ + ARKUI_FOCUS_MOVE_DOWN, + /** Move focus left. */ + ARKUI_FOCUS_MOVE_LEFT, + /** Move focus right. */ + ARKUI_FOCUS_MOVE_RIGHT, +} ArkUI_FocusMove; + /** * @brief defines the enumerated value of the customDialog's keyboard avoid mode. *