1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-08-03 20:07:35 +02:00

Merge pull request #547 from nhogle/fix-546-codemirror-tab-key

Fix issue 546: Tab key not working in JS editor when using CodeMirror
This commit is contained in:
Kushagra Gour
2023-10-12 14:38:49 +05:30
committed by GitHub

View File

@@ -344,6 +344,7 @@ export default class CodeEditor extends Component {
if (didEmmetWork === true) {
return;
}
}
const input = $('[data-setting=indentWith]:checked');
if (
!editor.somethingSelected() &&
@@ -356,7 +357,6 @@ export default class CodeEditor extends Component {
} else {
CodeMirror.commands.defaultTab(editor);
}
}
},
Enter: 'emmetInsertLineBreak'
}