File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
client/modules/IDE/components Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ const beautifyHTML = beautifyJS.html;
6262window . JSHINT = JSHINT ;
6363window . CSSLint = CSSLint ;
6464window . HTMLHint = HTMLHint ;
65+ delete CodeMirror . keyMap . sublime [ 'Shift-Tab' ] ;
6566
6667const IS_TAB_INDENT = false ;
6768const INDENTATION_AMOUNT = 2 ;
@@ -304,10 +305,8 @@ class Editor extends React.Component {
304305 } else if ( mode === 'htmlmixed' ) {
305306 this . _cm . doc . setValue ( beautifyHTML ( this . _cm . doc . getValue ( ) , beautifyOptions ) ) ;
306307 }
307- setTimeout ( ( ) => {
308- this . _cm . focus ( ) ;
309- this . _cm . doc . setCursor ( { line : currentPosition . line , ch : currentPosition . ch + INDENTATION_AMOUNT } ) ;
310- } , 0 ) ;
308+ this . _cm . focus ( ) ;
309+ this . _cm . doc . setCursor ( { line : currentPosition . line , ch : currentPosition . ch + INDENTATION_AMOUNT } ) ;
311310 }
312311
313312 initializeDocuments ( files ) {
You can’t perform that action at this time.
0 commit comments