Commit 9498e72c authored by Anastasia Helfinstein's avatar Anastasia Helfinstein Committed by Commit Bot

[Switch Access] Hide the menu when not navigating through it

Occasionally when Switch Access is trying to recover from an error
condition, the action menu remains open when the user is not navigating
through it. Close the action menu when recovering from invalid states.

AX-Relnotes: n/a.
Bug: None.
Change-Id: Iced9e6a480e85b02d10a75704b71200bfa6271d7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2292994Reviewed-by: default avatarAkihiro Ota <akihiroota@chromium.org>
Commit-Queue: Anastasia Helfinstein <anastasi@google.com>
Cr-Commit-Position: refs/heads/master@{#787949}
parent 5dce2c18
...@@ -178,6 +178,9 @@ class NavigationManager { ...@@ -178,6 +178,9 @@ class NavigationManager {
} }
} }
// Make sure the menu isn't open.
MenuManager.exit();
const child = navigator.group_.firstValidChild(); const child = navigator.group_.firstValidChild();
if (groupIsValid && child) { if (groupIsValid && child) {
navigator.setNode_(child); navigator.setNode_(child);
......
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