|
@@ -2698,7 +2698,7 @@ const PDFViewerApplication = {
|
|
|
passive: false
|
|
|
});
|
|
|
window.removeEventListener("click", webViewerClick);
|
|
|
- window.removeEventListener("keydown", webViewerKeyDown);
|
|
|
+ // window.removeEventListener("keydown", webViewerKeyDown);
|
|
|
window.removeEventListener("resize", _boundEvents.windowResize);
|
|
|
window.removeEventListener("hashchange", _boundEvents.windowHashChange);
|
|
|
window.removeEventListener("beforeprint", _boundEvents.windowBeforePrint);
|
|
@@ -13368,13 +13368,13 @@ function renderProgress(index, total, l10n) {
|
|
|
progressPerc.textContent = msg;
|
|
|
});
|
|
|
}
|
|
|
-window.addEventListener("keydown", function (event) {
|
|
|
- if (event.keyCode === 80 && (event.ctrlKey || event.metaKey) && !event.altKey && (!event.shiftKey || window.chrome || window.opera)) {
|
|
|
- window.print();
|
|
|
- event.preventDefault();
|
|
|
- event.stopImmediatePropagation();
|
|
|
- }
|
|
|
-}, true);
|
|
|
+// window.addEventListener("keydown", function (event) {
|
|
|
+// if (event.keyCode === 80 && (event.ctrlKey || event.metaKey) && !event.altKey && (!event.shiftKey || window.chrome || window.opera)) {
|
|
|
+// window.print();
|
|
|
+// event.preventDefault();
|
|
|
+// event.stopImmediatePropagation();
|
|
|
+// }
|
|
|
+// }, true);
|
|
|
if ("onbeforeprint" in window) {
|
|
|
const stopPropagationIfNeeded = function (event) {
|
|
|
if (event.detail !== "custom") {
|