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

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

Issue 2480913002: Fix a variety of panel issues (Closed)
Patch Set: Fix a variety of panel issues Created 4 years, 1 month 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
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 a8ab1644f36f0978390946115d3dd7f7efd11264..1aa51c54d0e125b74edca305926c1619d50a5c63 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js
@@ -130,6 +130,7 @@ Panel.init = function() {
document.addEventListener('keydown', Panel.onKeyDown, false);
document.addEventListener('mouseup', Panel.onMouseUp, false);
+ window.addEventListener('blur', Panel.closeMenusAndRestoreFocus, false);
Panel.searchInput_.addEventListener('blur', Panel.onSearchInputBlur, false);
};
@@ -253,7 +254,7 @@ Panel.setMode = function(mode) {
// host code to make the window fullscreen and give it focus.
window.location = '#fullscreen';
} else if (this.mode_ == Panel.Mode.FOCUSED) {
- // // Change the url fragment to 'focus', which signals the native
+ // Change the url fragment to 'focus', which signals the native
// host code to give the window focus.
window.location = '#focus';
} else {
@@ -790,7 +791,7 @@ Panel.onTutorial = function() {
// host code to make the window fullscreen, revealing the menus.
Panel.setMode(Panel.Mode.FULLSCREEN_TUTORIAL);
- Panel.tutorial_.firstPage();
+ Panel.tutorial_.lastViewedPage();
};
/**

Powered by Google App Engine
This is Rietveld 408576698