diff --git a/src/bundle/MarkdownEditorView.tsx b/src/bundle/MarkdownEditorView.tsx index 819048638..1d5eecfda 100644 --- a/src/bundle/MarkdownEditorView.tsx +++ b/src/bundle/MarkdownEditorView.tsx @@ -128,7 +128,10 @@ export const MarkdownEditorView = React.forwardRef canRenderPreview && isPreviewKeyDown(e), - () => onShowPreviewChange(!showPreview), + (e) => { + e.preventDefault(); + onShowPreviewChange(!showPreview); + }, {event: 'keydown'}, [showPreview, editorMode, onShowPreviewChange, canRenderPreview], );