Commit 018044bb authored by Weidong Guo's avatar Weidong Guo Committed by Commit Bot

Fix duplicate announcement for apps in grid

Changes:
Use ax::mojom::Event::kFocus instead of ax::mojom::Event::kSelection
since the latter will trigger duplicate vox announcement.

Bug: 929762
Change-Id: I6757daa139cefac303f607de0346a70cb3138d08
Reviewed-on: https://chromium-review.googlesource.com/c/1459056Reviewed-by: default avatarAlex Newcomer <newcomer@chromium.org>
Commit-Queue: Weidong Guo <weidongg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#630087}
parent 96a5b524
......@@ -1118,7 +1118,7 @@ void AppsGridView::SetSelectedItemByIndex(const GridIndex& index) {
EnsureViewVisible(index);
selected_view_ = new_selection;
selected_view_->SchedulePaint();
selected_view_->NotifyAccessibilityEvent(ax::mojom::Event::kSelection, true);
selected_view_->NotifyAccessibilityEvent(ax::mojom::Event::kFocus, true);
}
GridIndex AppsGridView::GetIndexOfView(const AppListItemView* view) const {
......
......@@ -148,7 +148,7 @@ void SuggestionChipView::OnPaintBackground(gfx::Canvas* canvas) {
void SuggestionChipView::OnFocus() {
SchedulePaint();
NotifyAccessibilityEvent(ax::mojom::Event::kSelection, true);
NotifyAccessibilityEvent(ax::mojom::Event::kFocus, true);
}
void SuggestionChipView::OnBlur() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment