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

Unified Diff: ui/file_manager/file_manager/foreground/elements/files_quick_view.js

Issue 2324993002: Quick View: avoid to lose focus when metadata button is clicked. (Closed)
Patch Set: 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
« no previous file with comments | « ui/file_manager/file_manager/foreground/elements/files_quick_view.html ('k') | 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/elements/files_quick_view.js
diff --git a/ui/file_manager/file_manager/foreground/elements/files_quick_view.js b/ui/file_manager/file_manager/foreground/elements/files_quick_view.js
index 3fc8e6f922c1c42bfcb20de8f5b0ca6e65d67837..f887b5e3858ad252839e30f4901dc5dd95a99c42 100644
--- a/ui/file_manager/file_manager/foreground/elements/files_quick_view.js
+++ b/ui/file_manager/file_manager/foreground/elements/files_quick_view.js
@@ -79,6 +79,17 @@ var FilesQuickView = Polymer({
onOpenInNewButtonTap: function(event) {},
/**
+ * @param {!Event} event tap event.
+ *
+ * @private
+ */
+ onMetadataButtonTap_: function(event) {
+ // Set focus back to innerContent panel so that pressing space key next
+ // closes Quick View.
+ this.$.innerContentPanel.focus();
+ },
+
+ /**
* Close Quick View unless the clicked target or its ancestor contains
* 'no-close-on-click' class.
*
« no previous file with comments | « ui/file_manager/file_manager/foreground/elements/files_quick_view.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698