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 fe7c035c3437816f4b714cfe0dd04dd6542bb9ce..bbcfed8c18d2530572253a635b438375ac30d694 100644 |
--- a/chrome/browser/resources/print_preview/print_preview.js |
+++ b/chrome/browser/resources/print_preview/print_preview.js |
@@ -657,7 +657,9 @@ cr.define('print_preview', function() { |
} |
} |
- if (e.keyCode == 13 /*enter*/ && this.printTicketStore_.isTicketValid()) { |
+ if (e.keyCode == 13 /*enter*/ && |
+ !this.destinationSearch_.getIsVisible() && |
+ this.printTicketStore_.isTicketValid()) { |
assert(this.uiState_ == PrintPreview.UiState_.READY, |
'Trying to print when not in ready state: ' + this.uiState_); |
this.printDocumentOrOpenPdfPreview_(false /*isPdfPreview*/); |