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

Unified Diff: ui/file_manager/file_manager/foreground/js/ui/file_table.js

Issue 884183006: Files.app: Add UI to toggle and clear item selection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments. Created 5 years, 10 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: ui/file_manager/file_manager/foreground/js/ui/file_table.js
diff --git a/ui/file_manager/file_manager/foreground/js/ui/file_table.js b/ui/file_manager/file_manager/foreground/js/ui/file_table.js
index dc2f5e0077cc3a38a9872a9de20fd465d4001aed..cfea87c1b937310970daefdf78e33a8b33c0770e 100644
--- a/ui/file_manager/file_manager/foreground/js/ui/file_table.js
+++ b/ui/file_manager/file_manager/foreground/js/ui/file_table.js
@@ -477,6 +477,10 @@ FileTable.prototype.renderName_ = function(entry, columnId, table) {
var icon = this.renderIconType_(entry, columnId, table);
icon.appendChild(this.renderThumbnail_(entry));
icon.appendChild(this.renderCheckmark_());
+ icon.addEventListener(
+ 'mouseup', util.repeatMouseEventWithCtrlKey.bind(null, label));
+ icon.addEventListener(
+ 'mousedown', util.repeatMouseEventWithCtrlKey.bind(null, label));
label.appendChild(icon);
label.entry = entry;
« no previous file with comments | « ui/file_manager/file_manager/foreground/js/ui/file_manager_ui.js ('k') | ui/file_manager/file_manager/main.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698