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

Unified Diff: chrome/browser/resources/md_bookmarks/folder_node.js

Issue 2920413002: MD Bookmarks: Focus sidebar nodes on click without showing an outline (Closed)
Patch Set: Fix override comment Created 3 years, 6 months 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/md_bookmarks/folder_node.js
diff --git a/chrome/browser/resources/md_bookmarks/folder_node.js b/chrome/browser/resources/md_bookmarks/folder_node.js
index f5b101e8f34eb7744d0aa13f13ad4cfef6e962be..d9ed14196e94335ed5b043061ee66cd3c8331e3a 100644
--- a/chrome/browser/resources/md_bookmarks/folder_node.js
+++ b/chrome/browser/resources/md_bookmarks/folder_node.js
@@ -6,6 +6,7 @@ Polymer({
is: 'bookmarks-folder-node',
behaviors: [
+ bookmarks.MouseFocusBehavior,
bookmarks.StoreClient,
],
@@ -69,7 +70,10 @@ Polymer({
}
},
- /** @return {HTMLElement} */
+ /**
+ * Overriden from bookmarks.MouseFocusBehavior.
+ * @return {!HTMLElement}
+ */
getFocusTarget: function() {
return this.$.container;
},
@@ -344,6 +348,6 @@ Polymer({
* @return {string}
*/
getTabIndex_: function() {
- return this.isSelectedFolder_ ? '0' : '';
+ return this.isSelectedFolder_ ? '0' : '-1';
},
});
« no previous file with comments | « chrome/browser/resources/md_bookmarks/folder_node.html ('k') | chrome/browser/resources/md_bookmarks/item.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698