Skip to content

Commit

Permalink
cleanup: make the bold, italic and striketrough be without shift
Browse files Browse the repository at this point in the history
  • Loading branch information
GabsEdits committed Sep 24, 2024
1 parent 5995bfc commit f0a57cc
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ export default function Home() {
if (event.metaKey && event.shiftKey && event.key === "f") {
toggleFocusMode();
}
if (event.metaKey && event.shiftKey && event.key === "b") {
if (event.metaKey && event.key === "b") {
event.preventDefault();
makeTextBold();
}
if (event.metaKey && event.shiftKey && event.key === "i") {
if (event.metaKey && event.key === "i") {
event.preventDefault();
makeTextItalic();
}
Expand Down Expand Up @@ -313,7 +313,9 @@ export default function Home() {
></aside>
</section>
</div>
<footer className={`text-center flex flex-col gap-3 ${focusMode ? "hidden" : ""}`}>
<footer
className={`text-center flex flex-col gap-3 ${focusMode ? "hidden" : ""}`}
>
<p className="text-xs">Just Text. Just Notes. Save. Secure.</p>
<p className="text-xs font-medium">v1.0.0-rc.8 &quot;Prut&quot;</p>
<p className="text-base font-medium">
Expand Down Expand Up @@ -350,23 +352,29 @@ 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 + F
{isMac ? "Command" : "Ctrl"} + D
</span>{" "}
: Toggle Focus Mode
: Strikethrough text
</li>
<li className="mb-2">
<span className="font-bold p-1 rounded-md bg-neutral-300 dark:bg-neutral-700">
{isMac ? "Command" : "Ctrl"} + Shift + B
{isMac ? "Command" : "Ctrl"} + B
</span>{" "}
: Make text bold
</li>
<li className="mb-2">
<span className="font-bold p-1 rounded-md bg-neutral-300 dark:bg-neutral-700">
{isMac ? "Command" : "Ctrl"} + Shift + I
{isMac ? "Command" : "Ctrl"} + I
</span>{" "}
: Make text italic
</li>
<li className="mb-2">
<span className="font-bold p-1 rounded-md bg-neutral-300 dark:bg-neutral-700">
{isMac ? "Command" : "Ctrl"} + Shift + F
</span>{" "}
: Toggle Focus Mode
</li>
<li>
<span className="font-bold p-1 rounded-md bg-neutral-300 dark:bg-neutral-700">
{isMac ? "Command" : "Ctrl"} + Shift + S
</span>{" "}
Expand All @@ -378,12 +386,6 @@ export default function Home() {
</span>{" "}
: Open text file
</li>
<li className="mb-2">
<span className="font-bold p-1 rounded-md bg-neutral-300 dark:bg-neutral-700">
{isMac ? "Command" : "Ctrl"} + Shift + D
</span>{" "}
: Strikethrough text
</li>
<li className="mb-2">
<span className="font-bold p-1 rounded-md bg-neutral-300 dark:bg-neutral-700">
{isMac ? "Command" : "Ctrl"} + P
Expand Down

0 comments on commit f0a57cc

Please sign in to comment.