mirror of
https://gitee.com/openharmony/accessibility
synced 2024-11-23 06:50:30 +00:00
!1496 修改sendEvent时,accessibility_focus_event不更新activeWindowId
Merge pull request !1496 from qianchuang/master
This commit is contained in:
commit
812b23b67a
@ -830,7 +830,7 @@ void AccessibilityWindowManager::WindowUpdateAll(const std::vector<sptr<Rosen::A
|
||||
sceneBoardElementIdMap_.InsertPair(realWid, window->uiNodeId_);
|
||||
}
|
||||
|
||||
if (a11yWindows_[realWid].IsFocused()) {
|
||||
if (window->focused_) {
|
||||
SetActiveWindow(realWid);
|
||||
}
|
||||
|
||||
|
@ -1977,10 +1977,12 @@ void AccessibleAbilityManagerService::UpdateAccessibilityWindowStateByEvent(cons
|
||||
|
||||
switch (evtType) {
|
||||
case TYPE_VIEW_HOVER_ENTER_EVENT:
|
||||
case TYPE_VIEW_ACCESSIBILITY_FOCUSED_EVENT:
|
||||
Singleton<AccessibilityWindowManager>::GetInstance().SetActiveWindow(windowId, false);
|
||||
Singleton<AccessibilityWindowManager>::GetInstance().SetAccessibilityFocusedWindow(windowId);
|
||||
break;
|
||||
case TYPE_VIEW_ACCESSIBILITY_FOCUSED_EVENT:
|
||||
Singleton<AccessibilityWindowManager>::GetInstance().SetAccessibilityFocusedWindow(windowId);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user