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

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

Issue 2347063003: Add 'Get Info' to contextual menu to display QuickView. (Closed)
Patch Set: Add 'Get Info' to contextual menu to display QuickView. Created 4 years, 3 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/quick_view_controller.js
diff --git a/ui/file_manager/file_manager/foreground/js/quick_view_controller.js b/ui/file_manager/file_manager/foreground/js/quick_view_controller.js
index aef17cdee1cec90d58fdb2902f48f2d13c3ee9fa..6d57dadbc67e0407c65c032e34afcf77d5df003f 100644
--- a/ui/file_manager/file_manager/foreground/js/quick_view_controller.js
+++ b/ui/file_manager/file_manager/foreground/js/quick_view_controller.js
@@ -74,6 +74,10 @@ function QuickViewController(
this.onFileSelectionChanged_.bind(this));
listContainer.element.addEventListener(
'keydown', this.onKeyDownToOpen_.bind(this));
+ listContainer.element.addEventListener('command', function(event) {
+ if(event.command.id === 'get-info')
+ this.display_();
+ }.bind(this));
quickView.addEventListener('keydown', this.onQuickViewKeyDown_.bind(this));
quickView.addEventListener('iron-overlay-closed', function() {
this.listContainer_.focus();
« no previous file with comments | « ui/file_manager/file_manager/foreground/js/file_manager_commands.js ('k') | ui/file_manager/file_manager/main.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698