Index: chrome/browser/resources/print_preview/print_preview.js |
diff --git a/chrome/browser/resources/print_preview/print_preview.js b/chrome/browser/resources/print_preview/print_preview.js |
index 3d52bee54ca6b55a7e79abe1b0d4a8ece08cfead..79d7f620e7e92de904146f72fddd765e96787094 100644 |
--- a/chrome/browser/resources/print_preview/print_preview.js |
+++ b/chrome/browser/resources/print_preview/print_preview.js |
@@ -855,6 +855,13 @@ cr.define('print_preview', function() { |
return; |
} |
+ // On Mac, Cmd- should close the print dialog. |
+ if (cr.isMac && e.keyCode == 189 && e.metaKey) { |
+ this.close_(); |
+ e.preventDefault(); |
+ return; |
+ } |
+ |
// Ctrl + Shift + p / Mac equivalent. |
if (e.keyCode == 80) { |
if ((cr.isMac && e.metaKey && e.altKey && !e.shiftKey && !e.ctrlKey) || |