mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-18 10:00:55 -04:00
The code editor will auto focus when you complete a challenge ad move to next one closes #192
This commit is contained in:
committed by
Mrugesh Mohapatra
parent
1973376496
commit
299f3de311
@@ -61,6 +61,7 @@ class Editor extends PureComponent {
|
||||
|
||||
editorDidMount(editor, monaco) {
|
||||
this._editor = editor;
|
||||
this._editor.focus();
|
||||
document.addEventListener('keyup', this.focusEditor);
|
||||
this._editor.addAction({
|
||||
id: 'execute-challenge',
|
||||
|
||||
Reference in New Issue
Block a user