diff --git a/frontend/src/index.ts b/frontend/src/index.ts index 7a2e5bd..b63c9a0 100755 --- a/frontend/src/index.ts +++ b/frontend/src/index.ts @@ -194,8 +194,7 @@ document.addEventListener("keydown", (e) => { if (e.ctrlKey && e.key === "s") { e.preventDefault() savePaste() - } - if (e.ctrlKey && e.key === "n") { + } else if (e.ctrlKey && e.key === "n") { e.preventDefault() newPaste() }