Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js |
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js |
index 4d6a4d7c3caa50e85d10293f86d0c48a679198b3..5c5f078e7c0a97931cf02b99461eaf4d1d3f242b 100644 |
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js |
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js |
@@ -802,7 +802,7 @@ Panel.getCallbackForCurrentItem = function() { |
Panel.closeMenusAndRestoreFocus = function() { |
// Watch for the next focus event. |
var onFocus = function(desktop, evt) { |
- desktop.removeEventListener(chrome.automation.EventType.focus, onFocus); |
+ desktop.removeEventListener(chrome.automation.EventType.FOCUS, onFocus); |
if (Panel.pendingCallback_) { |
// Clear it before calling it, in case the callback itself triggers |
// another pending callback. |
@@ -815,7 +815,7 @@ Panel.closeMenusAndRestoreFocus = function() { |
chrome.automation.getDesktop(function(desktop) { |
onFocus = /** @type {function(chrome.automation.AutomationEvent)} */( |
onFocus.bind(this, desktop)); |
- desktop.addEventListener(chrome.automation.EventType.focus, |
+ desktop.addEventListener(chrome.automation.EventType.FOCUS, |
onFocus, |
true); |