Skip to content

Commit

Permalink
fix: prevent print dialog to open with ctrl-shift-p (#5199)
Browse files Browse the repository at this point in the history
  • Loading branch information
fehmer authored Mar 8, 2024
1 parent 8ca760d commit c4446e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/ts/event-handlers/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c4446e9

Please sign in to comment.