add focuser. defer bindings until curtain opens

This commit is contained in:
Stewart Allen 2020-06-08 00:08:19 -04:00
commit a23c62d3e9
4 changed files with 49 additions and 33 deletions

View file

@ -1833,7 +1833,7 @@
}
function setFocus(el) {
el = [ el || UI.load, DOC.body ];
el = [ el || UI.focuser, UI.load, UI.sizeX, DOC.body ];
for (let es, i=0; i<el.length; i++) {
es = el[i];
es.focus();