From 874088e067182254d121d49c8296228a42de1636 Mon Sep 17 00:00:00 2001 From: tophf Date: Fri, 1 Sep 2017 12:25:40 +0300 Subject: [PATCH] edit: focus the first section upon opening --- edit/edit.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/edit/edit.js b/edit/edit.js index 9f634379..af23297d 100644 --- a/edit/edit.js +++ b/edit/edit.js @@ -1299,6 +1299,7 @@ function init() { } addSection(null, section); editors[0].setOption('lint', CodeMirror.defaults.lint); + editors[0].focus(); // default to enabled $('#enabled').checked = true; initHooks(); @@ -1362,6 +1363,7 @@ function initWithStyle({style, codeIsUpdated}) { setGlobalProgress(); } })(); + editors[0].focus(); initHooks(); setCleanGlobal(); updateTitle();