diff --git a/src/components/Editor/CustomExtensions/SlashCommands/ExtensionConfig.js b/src/components/Editor/CustomExtensions/SlashCommands/ExtensionConfig.js index a3ed69e8..f4230821 100644 --- a/src/components/Editor/CustomExtensions/SlashCommands/ExtensionConfig.js +++ b/src/components/Editor/CustomExtensions/SlashCommands/ExtensionConfig.js @@ -102,6 +102,12 @@ export default { }); }, onKeyDown(props) { + if (props.event.key === "Escape") { + popup[0].hide(); + + return true; + } + return reactRenderer && reactRenderer?.ref?.onKeyDown(props); }, onExit() {