Commit c8b0e9f8 authored by Robbie Gibson's avatar Robbie Gibson Committed by Commit Bot

[iOS] Force Voiceover focus to UIMenuController after showing manually

Bug: 938239
Change-Id: I8224e85f8c29d9610975fad88ae1cd7488c9d650
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1503316
Commit-Queue: Robbie Gibson <rkgibson@google.com>
Reviewed-by: default avatarStepan Khapugin <stkhapugin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#638061}
parent e9db27b2
...@@ -476,6 +476,10 @@ typedef NS_ENUM(int, TrailingButtonState) { ...@@ -476,6 +476,10 @@ typedef NS_ENUM(int, TrailingButtonState) {
[menu setTargetRect:self.locationBarSteadyView.frame inView:self.view]; [menu setTargetRect:self.locationBarSteadyView.frame inView:self.view];
[menu setMenuVisible:YES animated:YES]; [menu setMenuVisible:YES animated:YES];
// When we present the menu manually, it doesn't get focused by Voiceover.
// This notification forces voiceover to select the presented menu.
UIAccessibilityPostNotification(UIAccessibilityLayoutChangedNotification,
menu);
}); });
} }
} }
......
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