diff --git a/client/modules/IDE/components/Editor.jsx b/client/modules/IDE/components/Editor.jsx index 6281432ab2..6fa79fd236 100644 --- a/client/modules/IDE/components/Editor.jsx +++ b/client/modules/IDE/components/Editor.jsx @@ -62,6 +62,7 @@ const beautifyHTML = beautifyJS.html; window.JSHINT = JSHINT; window.CSSLint = CSSLint; window.HTMLHint = HTMLHint; +delete CodeMirror.keyMap.sublime['Shift-Tab']; const IS_TAB_INDENT = false; const INDENTATION_AMOUNT = 2; @@ -304,10 +305,8 @@ class Editor extends React.Component { } else if (mode === 'htmlmixed') { this._cm.doc.setValue(beautifyHTML(this._cm.doc.getValue(), beautifyOptions)); } - setTimeout(() => { - this._cm.focus(); - this._cm.doc.setCursor({ line: currentPosition.line, ch: currentPosition.ch + INDENTATION_AMOUNT }); - }, 0); + this._cm.focus(); + this._cm.doc.setCursor({ line: currentPosition.line, ch: currentPosition.ch + INDENTATION_AMOUNT }); } initializeDocuments(files) {