Skip to content

Commit

Permalink
Refactor markdown syntax shortcuts in chat.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Kratospidey committed Mar 2, 2024
1 parent 9bda22d commit 8466b23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -414,13 +414,13 @@ function scrollToBottomOfChat() {
}

messageInput.addEventListener("keydown", function (e) {
if (e.ctrlKey && e.altKey && e.key === "B") {
if (e.ctrlKey && e.key === "Y") {
applyMarkdownSyntax("**");
e.preventDefault();
}

// Italic with Ctrl + Shift + I
else if (e.ctrlKey && e.altKey && e.key === "I") {
else if (e.ctrlKey && e.key === "I") {
applyMarkdownSyntax("*");
e.preventDefault();
}
Expand Down

0 comments on commit 8466b23

Please sign in to comment.