Skip to content

Commit 5e51841

Browse files
authored
Merge pull request #3299 from Jatin24062005/JATIN/#3252
Fix The Freeze Hinter #3252
2 parents 2f99876 + 95f1cb7 commit 5e51841

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

+1-12
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)