From 386e22624ee3fb7f4ebb8cc32f9f1720804a0b38 Mon Sep 17 00:00:00 2001 From: Gabriel Cozma Date: Mon, 26 Aug 2024 18:53:49 +0300 Subject: [PATCH] cleanup: make printing be ctrl + p --- src/pages/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 8c5928f..6dfd0c6 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -125,7 +125,7 @@ export default function Home() { if (event.key === "Escape") { setShowAbout(false); } - if (event.metaKey && event.shiftKey && event.key === "p") { + if (event.metaKey && event.key === "p") { event.preventDefault(); const editableArea = document.getElementById( "editableArea", @@ -386,7 +386,7 @@ export default function Home() {
  • - {isMac ? 'Command' : 'Ctrl'} + Shift + P + {isMac ? 'Command' : 'Ctrl'} + P {" "} : Print text {"(opens in new tab)"}
  • @@ -427,7 +427,7 @@ export default function Home() {

    It is also optimized to allow the user to take the text offline, the text can be saved locally, and the text can be printed with a - simple keyboard shortcut {"("}{isMac ? 'Command' : 'Ctrl'} + Shift + P{")"}. + simple keyboard shortcut {"("}{isMac ? 'Command' : 'Ctrl'} + P{")"}.

    The app is built using Next.js{" "}