Skip to content

Commit

Permalink
Report: Close export dropdown when printing (#2914)
Browse files Browse the repository at this point in the history
  • Loading branch information
ebidel authored and brendankenny committed Aug 9, 2017
1 parent e1a04dd commit a45ece8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lighthouse-core/report/v2/renderer/report-ui-features.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ class ReportUIFeatures {
break;
case 'print':
this.expandAllDetails();
this.closeExportDropdown();
self.print();
break;
case 'save-json': {
Expand Down Expand Up @@ -258,6 +259,7 @@ class ReportUIFeatures {
printShortCutDetect(e) {
if ((e.ctrlKey || e.metaKey) && e.keyCode === 80) { // Ctrl+P
this.expandAllDetails();
this.closeExportDropdown();
}
}

Expand Down

0 comments on commit a45ece8

Please sign in to comment.