From 1fca4093b82343e61e8e12d18925d1e21ae0f6bd Mon Sep 17 00:00:00 2001 From: Michael Wedl Date: Mon, 23 Dec 2024 11:10:21 +0100 Subject: [PATCH] MDE comment shortcut: preventdefault --- packages/frontend/src/composables/markdown.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/src/composables/markdown.ts b/packages/frontend/src/composables/markdown.ts index e5efa6c7..f28504dd 100644 --- a/packages/frontend/src/composables/markdown.ts +++ b/packages/frontend/src/composables/markdown.ts @@ -255,7 +255,7 @@ export function useMarkdownEditorBase(options: { keymap.of([ ...defaultKeymap, ...historyKeymap, - { key: 'Ctrl-Alt-m', stopPropagation: true, run: createCommentShortcut }, + { key: 'Ctrl-Alt-m', stopPropagation: true, preventDefault: true, run: createCommentShortcut }, ]), tooltips({ parent: document.body }), EditorView.domEventHandlers({