diff --git a/src/app/components/editor/Toolbar.tsx b/src/app/components/editor/Toolbar.tsx index e5c7d16e7..17ba6bc2f 100644 --- a/src/app/components/editor/Toolbar.tsx +++ b/src/app/components/editor/Toolbar.tsx @@ -257,7 +257,9 @@ export function Toolbar() { const modKey = isMacOS() ? KeySymbol.Command : 'Ctrl'; const disableInline = isBlockActive(editor, BlockType.CodeBlock); - const canEscape = isAnyMarkActive(editor) || !isBlockActive(editor, BlockType.Paragraph); + const canEscape = isBlockActive(editor, BlockType.Paragraph) + ? isAnyMarkActive(editor) + : ReactEditor.isFocused(editor); const [isMarkdown, setIsMarkdown] = useSetting(settingsAtom, 'isMarkdown'); return (