diff --git a/adapter/ohos/osal/js_accessibility_manager.cpp b/adapter/ohos/osal/js_accessibility_manager.cpp index 002f197c248..521a049499c 100644 --- a/adapter/ohos/osal/js_accessibility_manager.cpp +++ b/adapter/ohos/osal/js_accessibility_manager.cpp @@ -205,8 +205,6 @@ Accessibility::EventType ConvertAceEventType(AccessibilityEventType type) { AccessibilityEventType::HOVER_EXIT_EVENT, Accessibility::EventType::TYPE_VIEW_HOVER_EXIT_EVENT }, { AccessibilityEventType::CHANGE, Accessibility::EventType::TYPE_PAGE_CONTENT_UPDATE }, { AccessibilityEventType::COMPONENT_CHANGE, Accessibility::EventType::TYPE_VIEW_TEXT_UPDATE_EVENT }, - { AccessibilityEventType::PAGE_OPEN, Accessibility::EventType::TYPE_PAGE_OPEN }, - { AccessibilityEventType::PAGE_CLOSE, Accessibility::EventType::TYPE_PAGE_CLOSE }, { AccessibilityEventType::SCROLL_END, Accessibility::EventType::TYPE_VIEW_SCROLLED_EVENT }, { AccessibilityEventType::TEXT_SELECTION_UPDATE, Accessibility::EventType::TYPE_VIEW_TEXT_SELECTION_UPDATE_EVENT }, @@ -216,6 +214,8 @@ Accessibility::EventType ConvertAceEventType(AccessibilityEventType type) Accessibility::EventType::TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED_EVENT }, { AccessibilityEventType::TEXT_MOVE_UNIT, Accessibility::EventType::TYPE_VIEW_TEXT_MOVE_UNIT_EVENT }, { AccessibilityEventType::SCROLL_START, Accessibility::EventType::TYPE_VIEW_SCROLLED_START }, + { AccessibilityEventType::PAGE_CLOSE, Accessibility::EventType::TYPE_PAGE_CLOSE }, + { AccessibilityEventType::PAGE_OPEN, Accessibility::EventType::TYPE_PAGE_OPEN }, }; Accessibility::EventType eventType = Accessibility::EventType::TYPE_VIEW_INVALID; int64_t idx = BinarySearchFindIndex(eventTypeMap, ArraySize(eventTypeMap), type); diff --git a/frameworks/core/accessibility/accessibility_utils.h b/frameworks/core/accessibility/accessibility_utils.h index 424d8805b89..3d8b218f46e 100644 --- a/frameworks/core/accessibility/accessibility_utils.h +++ b/frameworks/core/accessibility/accessibility_utils.h @@ -107,8 +107,8 @@ enum class AccessibilityEventType : size_t { ACCESSIBILITY_FOCUS_CLEARED = 0x00010000, TEXT_MOVE_UNIT = 0x00020000, SCROLL_START = 0x01000000, - PAGE_OPEN = 0x20000000, PAGE_CLOSE = 0x08000000, + PAGE_OPEN = 0x20000000, UNKNOWN, };