Skip to content

Commit

Permalink
feat: ✨ Ctrl + N makes new paste
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatOneCalculator committed Mar 20, 2022
1 parent fb51056 commit d043839
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,10 @@ document.addEventListener("keydown", (e) => {
e.preventDefault()
savePaste()
}
if (e.ctrlKey && e.key === "n") {
e.preventDefault()
newPaste()
}
})

editor.addEventListener(
Expand Down

0 comments on commit d043839

Please sign in to comment.