| 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..260a7440b1f212465db49b0d06f49ad6fcb46323 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
|
| @@ -47,7 +47,7 @@ DesktopAutomationHandler = function(node) {
|
| this.addListener_(e.ariaAttributeChanged, this.onEventIfInRange);
|
| this.addListener_(e.checkedStateChanged, this.onEventIfInRange);
|
| this.addListener_(e.focus, this.onFocus);
|
| - this.addListener_(e.hover, this.onEventWithFlushedOutput);
|
| + this.addListener_(e.hover, this.onHover);
|
| this.addListener_(e.loadComplete, this.onLoadComplete);
|
| this.addListener_(e.menuEnd, this.onMenuEnd);
|
| this.addListener_(e.menuListItemSelected, this.onEventIfSelected);
|
| @@ -160,6 +160,17 @@ DesktopAutomationHandler.prototype = {
|
| },
|
|
|
| /**
|
| + * @param {!AutomationEvent} evt
|
| + */
|
| + onHover: function(evt) {
|
| + if (ChromeVoxState.instance.currentRange &&
|
| + evt.target == ChromeVoxState.instance.currentRange.start.node)
|
| + return;
|
| + Output.flushNextSpeechUtterance();
|
| + this.onEventDefault(evt);
|
| + },
|
| +
|
| + /**
|
| * Makes an announcement without changing focus.
|
| * @param {!AutomationEvent} evt
|
| */
|
|
|