mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 12:21:13 +00:00
Remove unnecessary comments
This commit is contained in:
parent
cc64f71072
commit
1f118e8bcc
1 changed files with 8 additions and 8 deletions
|
@ -435,28 +435,28 @@ export class MarkdownTextArea extends Component<
|
||||||
handleKeyBinds(i: MarkdownTextArea, event: KeyboardEvent) {
|
handleKeyBinds(i: MarkdownTextArea, event: KeyboardEvent) {
|
||||||
if (event.ctrlKey) {
|
if (event.ctrlKey) {
|
||||||
switch (event.key) {
|
switch (event.key) {
|
||||||
case "k": // Insert link
|
case "k":
|
||||||
i.handleInsertLink(i, event);
|
i.handleInsertLink(i, event);
|
||||||
break;
|
break;
|
||||||
case "b": // Insert bold
|
case "b":
|
||||||
i.handleInsertBold(i, event);
|
i.handleInsertBold(i, event);
|
||||||
break;
|
break;
|
||||||
case "i": // Insert italic
|
case "i":
|
||||||
i.handleInsertItalic(i, event);
|
i.handleInsertItalic(i, event);
|
||||||
break;
|
break;
|
||||||
case "e": // Insert code
|
case "e":
|
||||||
i.handleInsertCode(i, event);
|
i.handleInsertCode(i, event);
|
||||||
break;
|
break;
|
||||||
case "8": // Insert unordered list
|
case "8":
|
||||||
i.handleInsertList(i, event);
|
i.handleInsertList(i, event);
|
||||||
break;
|
break;
|
||||||
case "s": // Insert spoiler
|
case "s":
|
||||||
i.handleInsertSpoiler(i, event);
|
i.handleInsertSpoiler(i, event);
|
||||||
break;
|
break;
|
||||||
case "p": // Move to preview view
|
case "p":
|
||||||
if (i.state.content) i.handlePreviewToggle(i, event);
|
if (i.state.content) i.handlePreviewToggle(i, event);
|
||||||
break;
|
break;
|
||||||
case ".": // Insert quote
|
case ".":
|
||||||
i.handleInsertQuote(i, event);
|
i.handleInsertQuote(i, event);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue