Skip to content

Commit

Permalink
MDE comment shortcut: preventdefault
Browse files Browse the repository at this point in the history
  • Loading branch information
MWedl committed Dec 23, 2024
1 parent df5a386 commit 1fca409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/frontend/src/composables/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 1fca409

Please sign in to comment.