diff --git a/extensions/markdown/js/src/forum/index.js b/extensions/markdown/js/src/forum/index.js index db1de329e..ce32a7906 100644 --- a/extensions/markdown/js/src/forum/index.js +++ b/extensions/markdown/js/src/forum/index.js @@ -41,6 +41,7 @@ const applyStyle = (id) => { function makeShortcut(id, key) { return function (e) { if (e.key === key && (e.metaKey && modifierKey === '⌘' || e.ctrlKey && modifierKey === 'ctrl')) { + e.preventDefault(); applyStyle(id); } }