File tree 1 file changed +1
-12
lines changed
client/modules/IDE/components/Editor
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 {
168
168
} ,
169
169
Enter : 'emmetInsertLineBreak' ,
170
170
Esc : 'emmetResetAbbreviation' ,
171
+ [ `Shift-Tab` ] : false ,
171
172
[ `${ metaKey } -Enter` ] : ( ) => null ,
172
173
[ `Shift-${ metaKey } -Enter` ] : ( ) => null ,
173
174
[ `${ metaKey } -F` ] : 'findPersistent' ,
@@ -209,18 +210,6 @@ class Editor extends React.Component {
209
210
if ( / ^ [ a - z ] $ / i. test ( e . key ) && ( mode === 'css' || mode === 'javascript' ) ) {
210
211
this . showHint ( _cm ) ;
211
212
}
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
- }
224
213
} ) ;
225
214
226
215
this . _cm . getWrapperElement ( ) . style [
You can’t perform that action at this time.
0 commit comments