diff --git a/client/modules/IDE/components/Editor/index.jsx b/client/modules/IDE/components/Editor/index.jsx index 925fdf955b..609f31a504 100644 --- a/client/modules/IDE/components/Editor/index.jsx +++ b/client/modules/IDE/components/Editor/index.jsx @@ -208,6 +208,10 @@ class Editor extends React.Component { if (/^[a-z]$/i.test(e.key) && (mode === 'css' || mode === 'javascript')) { this.showHint(_cm); } + if (e.key === 'Escape') { + e.preventDefault(); + this._cm.getInputField().blur(); + } }); this._cm.getWrapperElement().style[