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

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

Issue 970103002: Files.app: Cancel all selections on ESC key. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use === to compare numbers. 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
« 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: 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 860da24e495dfa237b0dc5d6ca11e4ebfbe8def4..4949743850230c4cd6ddc8bd87fa67b5a5350c31 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
@@ -1127,6 +1127,13 @@ filelist.handleKeyDown = function(e) {
return;
}
+ // Esc
+ if (e.keyCode === 27 && !e.ctrlKey && !e.shiftKey) {
+ sm.unselectAll();
+ e.preventDefault();
+ return;
+ }
+
// Space
if (e.keyCode == SPACE_KEY_CODE) {
if (leadIndex != -1) {
« 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