From: Adam Shea Date: Sat, 10 Jun 2023 12:12:48 +0000 (+0000) Subject: Remove unnecessary comments X-Git-Url: http://these/git/README.zh.hans.md?a=commitdiff_plain;h=1f118e8bccc68eac759a89da07c9184191afb3ef;p=lemmy-ui.git Remove unnecessary comments --- diff --git a/src/shared/components/common/markdown-textarea.tsx b/src/shared/components/common/markdown-textarea.tsx index 421a6c2..7702d2b 100644 --- a/src/shared/components/common/markdown-textarea.tsx +++ b/src/shared/components/common/markdown-textarea.tsx @@ -435,28 +435,28 @@ export class MarkdownTextArea extends Component< handleKeyBinds(i: MarkdownTextArea, event: KeyboardEvent) { if (event.ctrlKey) { switch (event.key) { - case "k": // Insert link + case "k": i.handleInsertLink(i, event); break; - case "b": // Insert bold + case "b": i.handleInsertBold(i, event); break; - case "i": // Insert italic + case "i": i.handleInsertItalic(i, event); break; - case "e": // Insert code + case "e": i.handleInsertCode(i, event); break; - case "8": // Insert unordered list + case "8": i.handleInsertList(i, event); break; - case "s": // Insert spoiler + case "s": i.handleInsertSpoiler(i, event); break; - case "p": // Move to preview view + case "p": if (i.state.content) i.handlePreviewToggle(i, event); break; - case ".": // Insert quote + case ".": i.handleInsertQuote(i, event); break; }