File tree 1 file changed +3
-4
lines changed
client/modules/IDE/components 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;
62
62
window . JSHINT = JSHINT ;
63
63
window . CSSLint = CSSLint ;
64
64
window . HTMLHint = HTMLHint ;
65
+ delete CodeMirror . keyMap . sublime [ 'Shift-Tab' ] ;
65
66
66
67
const IS_TAB_INDENT = false ;
67
68
const INDENTATION_AMOUNT = 2 ;
@@ -304,10 +305,8 @@ class Editor extends React.Component {
304
305
} else if ( mode === 'htmlmixed' ) {
305
306
this . _cm . doc . setValue ( beautifyHTML ( this . _cm . doc . getValue ( ) , beautifyOptions ) ) ;
306
307
}
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 } ) ;
311
310
}
312
311
313
312
initializeDocuments ( files ) {
You can’t perform that action at this time.
0 commit comments