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

Unified Diff: chrome/browser/resources/print_preview/common/overlay.js

Issue 2586113002: MD Settings: ignore modified key events in the profile avatar grid (Closed)
Patch Set: closure Created 4 years 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: chrome/browser/resources/print_preview/common/overlay.js
diff --git a/chrome/browser/resources/print_preview/common/overlay.js b/chrome/browser/resources/print_preview/common/overlay.js
index 4585dd64ae13a19e50a4addfae28fbac4cc04a78..e5f58fadc919e63a5d385d269ce1c9669e799c6b 100644
--- a/chrome/browser/resources/print_preview/common/overlay.js
+++ b/chrome/browser/resources/print_preview/common/overlay.js
@@ -40,7 +40,7 @@ cr.define('print_preview', function() {
this.getElement().addEventListener('keydown', function f(e) {
// Escape pressed -> cancel the dialog.
- if (!e.shiftKey && !e.ctrlKey && !e.altKey && !e.metaKey) {
+ if (!hasKeyModifiers(e)) {
if (e.keyCode == 27) {
e.stopPropagation();
e.preventDefault();
« no previous file with comments | « chrome/browser/resources/pdf/pdf.js ('k') | chrome/browser/resources/print_preview/previewarea/preview_area.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698