Skip to content

Commit

Permalink
cleanup: make printing be ctrl + p
Browse files Browse the repository at this point in the history
  • Loading branch information
GabsEdits committed Aug 26, 2024
1 parent b43ad0d commit 386e226
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -386,7 +386,7 @@ export default function Home() {
</li>
<li className="mb-2">
<span className="font-bold p-1 rounded-md bg-neutral-300 dark:bg-neutral-700">
{isMac ? 'Command' : 'Ctrl'} + Shift + P
{isMac ? 'Command' : 'Ctrl'} + P
</span>{" "}
: Print text {"(opens in new tab)"}
</li>
Expand Down Expand Up @@ -427,7 +427,7 @@ export default function Home() {
<p className="mb-2">
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{")"}.
</p>
<p className="mb-2">
The app is built using <a href="https://nextjs.org/">Next.js</a>{" "}
Expand Down

0 comments on commit 386e226

Please sign in to comment.