edit: focus the first section upon opening
This commit is contained in:
parent
96b47e7bdd
commit
874088e067
|
@ -1299,6 +1299,7 @@ function init() {
|
||||||
}
|
}
|
||||||
addSection(null, section);
|
addSection(null, section);
|
||||||
editors[0].setOption('lint', CodeMirror.defaults.lint);
|
editors[0].setOption('lint', CodeMirror.defaults.lint);
|
||||||
|
editors[0].focus();
|
||||||
// default to enabled
|
// default to enabled
|
||||||
$('#enabled').checked = true;
|
$('#enabled').checked = true;
|
||||||
initHooks();
|
initHooks();
|
||||||
|
@ -1362,6 +1363,7 @@ function initWithStyle({style, codeIsUpdated}) {
|
||||||
setGlobalProgress();
|
setGlobalProgress();
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
editors[0].focus();
|
||||||
initHooks();
|
initHooks();
|
||||||
setCleanGlobal();
|
setCleanGlobal();
|
||||||
updateTitle();
|
updateTitle();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user