Skip to content

Commit d689cbb

Browse files
authored
Merge branch 'develop' into Jatin-#Issue3016
2 parents b81e8f4 + 5e51841 commit d689cbb

File tree

1 file changed

+1
-12
lines changed
  • client/modules/IDE/components/Editor

1 file changed

+1
-12
lines changed

client/modules/IDE/components/Editor/index.jsx

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff 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[

0 commit comments

Comments
 (0)