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

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

Issue 2480303003: Fix links in tutorial (Closed)
Patch Set: Fix links in tutorial 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/tutorial.js
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/tutorial.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/tutorial.js
index 582574b19831a2cbdb37aeed62cf9d45b2d88c40..123f9f24b61d9661486f0800327bdfe03b2c16e5 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/tutorial.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/tutorial.js
@@ -179,7 +179,12 @@ Tutorial.prototype = {
} else if (pageElement.link) {
element = document.createElement('a');
element.href = pageElement.link;
- element.target = '_blank';
+ element.setAttribute('tabindex', 0);
+ element.addEventListener('click', function(evt) {
+ Panel.closeMenusAndRestoreFocus();
+ chrome.windows.create({url: evt.target.href});
+ return false;
+ }, false);
} else {
element = document.createElement('p');
}

Powered by Google App Engine
This is Rietveld 408576698