| 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 f7c5a73a3482f922976e638fdc1cdbcf028c4bae..833ee6411e05d8053af22197b1ad9863583b8cd0 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
|
| @@ -50,7 +50,7 @@ DesktopAutomationHandler = function(node) {
|
| this.addListener_(e.hover, this.onEventWithFlushedOutput);
|
| this.addListener_(e.loadComplete, this.onLoadComplete);
|
| this.addListener_(e.menuEnd, this.onMenuEnd);
|
| - this.addListener_(e.menuListItemSelected, this.onEventDefault);
|
| + this.addListener_(e.menuListItemSelected, this.onEventIfSelected);
|
| this.addListener_(e.menuStart, this.onMenuStart);
|
| this.addListener_(e.scrollPositionChanged, this.onScrollPositionChanged);
|
| this.addListener_(e.selection, this.onEventWithFlushedOutput);
|
| @@ -146,6 +146,14 @@ DesktopAutomationHandler.prototype = {
|
| /**
|
| * @param {!AutomationEvent} evt
|
| */
|
| + onEventIfSelected: function(evt) {
|
| + if (evt.target.state.selected)
|
| + this.onEventDefault(evt);
|
| + },
|
| +
|
| + /**
|
| + * @param {!AutomationEvent} evt
|
| + */
|
| onEventWithFlushedOutput: function(evt) {
|
| Output.flushNextSpeechUtterance();
|
| this.onEventDefault(evt);
|
|
|