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 87aea0970518a29e0788ea851c7afbbffb9b50fd..0fcb47c0c5322fd9db42558c283581c60ffbf14a 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 |
@@ -428,6 +428,9 @@ DesktopAutomationHandler.prototype = { |
* @param {!AutomationEvent} evt |
*/ |
onSelection: function(evt) { |
+ // Invalidate any previous editable text handler state. |
dmazzoni
2016/10/21 20:13:05
Could you comment that this is because we get sele
David Tseng
2016/10/24 16:35:31
Done.
|
+ this.textEditHandler_ = null; |
+ |
chrome.automation.getFocus(function(focus) { |
// Desktop tabs get "selection" when there's a focused webview during tab |
// switching. |