File tree 2 files changed +1
-20
lines changed
client/modules/IDE/components
2 files changed +1
-20
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,10 +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
- this . _cm . getInputField ( ) . blur ( ) ;
215
- }
216
213
} ) ;
217
214
218
215
this . _cm . getWrapperElement ( ) . style [
Original file line number Diff line number Diff line change 72
72
this . cm . getLine ( this . startPos . line ) . length -
73
73
this . cm . getSelection ( ) . length ;
74
74
75
- // keydown event for handling Escape key press
76
- var self = this ;
77
-
78
- cm . getWrapperElement ( ) . addEventListener ( 'keydown' , function ( event ) {
79
- self . handleKeyPress ( self . cm , event ) ;
80
- } ) ;
81
-
82
-
83
75
if ( this . options . updateOnCursorActivity ) {
84
76
var self = this ;
85
77
cm . on (
167
159
}
168
160
} ,
169
161
170
- handleKeyPress : function ( cm , event ) {
171
- if ( event . key === 'Escape' || event . keyCode === 27 ) {
172
- // Close the completion component
173
- this . close ( ) ;
174
- event . preventDefault ( ) ; // Prevent default Escape key behavior
175
- }
176
- } ,
177
-
178
162
update : function ( first ) {
179
163
if ( this . tick == null ) return ;
180
164
var self = this ,
You can’t perform that action at this time.
0 commit comments