Autofocus the input when opening a "Set Team Size" popup

This commit is contained in:
Daniel Ferri 2021-05-11 15:34:05 +02:00
parent c95a926154
commit f8a085af7a

@ -2103,6 +2103,7 @@ Bladeburner.prototype.updateOperationsUIElement = function(el, action) {
}, },
}); });
createPopup(popupId, [txt, input, setBtn, cancelBtn]); createPopup(popupId, [txt, input, setBtn, cancelBtn]);
input.focus();
}, },
})); }));
} }
@ -2254,6 +2255,7 @@ Bladeburner.prototype.updateBlackOpsUIElement = function(el, action) {
}, },
}); });
createPopup(popupId, [txt, input, setBtn, cancelBtn]); createPopup(popupId, [txt, input, setBtn, cancelBtn]);
input.focus();
}, },
})); }));
} }