diff --git a/src/components/Widgets/Markdown/MarkdownControl/VisualEditor/plugins.js b/src/components/Widgets/Markdown/MarkdownControl/VisualEditor/plugins.js index 9cb1b69e6d32..34820045b69c 100644 --- a/src/components/Widgets/Markdown/MarkdownControl/VisualEditor/plugins.js +++ b/src/components/Widgets/Markdown/MarkdownControl/VisualEditor/plugins.js @@ -54,8 +54,8 @@ const BreakToDefaultBlockOpts = { export const BreakToDefaultBlockConfigured = BreakToDefaultBlock(BreakToDefaultBlockOpts); const BackspaceCloseBlock = (options = {}) => ({ - onKeyDown(e, data, change) { - if (data.key != 'backspace') return; + onKeyDown(event, change) { + if (event.key !== 'Backspace') return; const { defaultBlock = 'paragraph', ignoreIn, onlyIn } = options; const { startBlock } = change.value;