File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed
client/modules/IDE/components/Editor Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,7 @@ class Editor extends React.Component {
168168 } ,
169169 Enter : 'emmetInsertLineBreak' ,
170170 Esc : 'emmetResetAbbreviation' ,
171+ [ `Shift-Tab` ] : false ,
171172 [ `${ metaKey } -Enter` ] : ( ) => null ,
172173 [ `Shift-${ metaKey } -Enter` ] : ( ) => null ,
173174 [ `${ metaKey } -F` ] : 'findPersistent' ,
@@ -209,18 +210,6 @@ class Editor extends React.Component {
209210 if ( / ^ [ a - z ] $ / i. test ( e . key ) && ( mode === 'css' || mode === 'javascript' ) ) {
210211 this . showHint ( _cm ) ;
211212 }
212- if ( e . key === 'Escape' ) {
213- e . preventDefault ( ) ;
214- const selections = this . _cm . listSelections ( ) ;
215-
216- if ( selections . length > 1 ) {
217- const firstPos = selections [ 0 ] . head || selections [ 0 ] . anchor ;
218- this . _cm . setSelection ( firstPos ) ;
219- this . _cm . scrollIntoView ( firstPos ) ;
220- } else {
221- this . _cm . getInputField ( ) . blur ( ) ;
222- }
223- }
224213 } ) ;
225214
226215 this . _cm . getWrapperElement ( ) . style [
You can’t perform that action at this time.
0 commit comments