mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-26 15:54:35 +08:00
fix: prevent print dialog to open with ctrl-shift-p (#5199)
This commit is contained in:
parent
8ca760dfd2
commit
c4446e9fb0
1 changed files with 1 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue