Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3563)

Unified Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.js

Issue 2028793002: Fix reading of menus. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.js
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.js
index ba484eac0227a89c992c25a26567c1df8a9a7970..5d33d3184cf9b2ec63356eda1383a59866414108 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.js
@@ -342,8 +342,10 @@ DesktopAutomationHandler.prototype = {
chrome.automation.getFocus(function(focus) {
// Some cases (e.g. in overview mode), require overriding the assumption
// that focus is an ancestor of a selection target.
- var override =
- evt.target.root == focus.root && focus.root.role == RoleType.desktop;
+ var override = evt.target.role == RoleType.menuItem ||
+ (evt.target.root == focus.root &&
+ focus.root.role == RoleType.desktop);
+ Output.flushNextSpeechUtterance();
if (override || AutomationUtil.isDescendantOf(evt.target, focus))
this.onEventDefault(evt);
}.bind(this));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698