fix: prevent print dialog to open with ctrl-shift-p (#5199)

This commit is contained in:
Christian Fehmer 2024-03-08 11:14:48 +01:00 committed by GitHub
parent 8ca760dfd2
commit c4446e9fb0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"