From c4446e9fb06f0752db24e3dbe4fe825cdebd411a Mon Sep 17 00:00:00 2001 From: Christian Fehmer Date: Fri, 8 Mar 2024 11:14:48 +0100 Subject: [PATCH] fix: prevent print dialog to open with ctrl-shift-p (#5199) --- frontend/src/ts/event-handlers/global.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/ts/event-handlers/global.ts b/frontend/src/ts/event-handlers/global.ts index 5403c2b5f..5ade85713 100644 --- a/frontend/src/ts/event-handlers/global.ts +++ b/frontend/src/ts/event-handlers/global.ts @@ -19,6 +19,7 @@ document.addEventListener("keydown", async (e) => { e.shiftKey) || (e.key.toLowerCase() === "p" && (e.metaKey || e.ctrlKey) && e.shiftKey) ) { + e.preventDefault(); const popupVisible = Misc.isAnyPopupVisible(); const miniResultPopupVisible = Misc.isElementVisible( ".pageAccount .miniResultChartWrapper"