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

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

Issue 2480123002: Prevent Escape key from closing open file dialog when Quick View is opening. (Closed)
Patch Set: Created 4 years, 1 month 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/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 6d57dadbc67e0407c65c032e34afcf77d5df003f..2b04daada9f5b5e3c15c499e855c4ef425958f2b 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
@@ -126,6 +126,8 @@ QuickViewController.prototype.onQuickViewKeyDown_ = function(event) {
case ' ':
case 'Escape':
event.preventDefault();
+ // Prevent the open dialog from closing.
+ event.stopImmediatePropagation();
this.quickView_.close();
break;
case 'ArrowRight':
« 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