diff --git a/web/app.js b/web/app.js index 78aacbc98..82f283157 100644 --- a/web/app.js +++ b/web/app.js @@ -2571,12 +2571,14 @@ function webViewerKeyDown(evt) { } } - if (typeof PDFJSDev === "undefined" || !PDFJSDev.test("MOZCENTRAL")) { + if (typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC || CHROME")) { + const { eventBus } = PDFViewerApplication; + // CTRL or META without shift if (cmd === 1 || cmd === 8) { switch (evt.keyCode) { case 83: // s - PDFViewerApplication.download(); + eventBus.dispatch("download", { source: window }); handled = true; break; }