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

Unified Diff: chrome/browser/resources/file_manager/js/file_table.js

Issue 16007004: Make selection solid and blue in Files.app. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/file_manager/js/file_table.js
diff --git a/chrome/browser/resources/file_manager/js/file_table.js b/chrome/browser/resources/file_manager/js/file_table.js
index 566be9b21a2a221c779e8cfdd0bab6d998b45cac..dd1f04c1d535647177dffaa6ecc2e61882463572 100644
--- a/chrome/browser/resources/file_manager/js/file_table.js
+++ b/chrome/browser/resources/file_manager/js/file_table.js
@@ -148,8 +148,14 @@ FileTable.decorate = function(self, metadataCache, fullPage) {
self.setRenderFunction(self.renderTableRow_.bind(self,
self.getRenderFunction()));
- if (util.platform.newUI())
+ if (util.platform.newUI()) {
ScrollBar.createVertical(self, self.list);
+ // Keep focus on the file list when clicking on the header.
+ self.header.addEventListener('mousedown', function(e) {
+ self.list.focus();
+ e.preventDefault();
+ });
+ }
var handleSelectionChange = function() {
var selectAll = self.querySelector('#select-all-checkbox');
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698