diff --git a/packages/core/editor/src/extensions/shortcuts.tsx b/packages/core/editor/src/extensions/shortcuts.tsx index 40fc3a6c5..13d069708 100644 --- a/packages/core/editor/src/extensions/shortcuts.tsx +++ b/packages/core/editor/src/extensions/shortcuts.tsx @@ -38,6 +38,7 @@ export const withShortcuts = (editor: YooEditor, slate: SlateEditor) => { if (hasMatchedBlock && !matchedBlock.isActive()) { Transforms.select(slate, range); Transforms.delete(slate); + editor.blocks[matchedBlock.type].toggle({ focus: true }); Blocks.createBlock(editor, matchedBlock.type, { deleteText: false, focus: true }); return; }