edit: focus the first section upon opening

This commit is contained in:
tophf 2017-09-01 12:25:40 +03:00
parent 96b47e7bdd
commit 874088e067

View File

@ -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();