Focus on popup

This commit is contained in:
SillyLossy
2023-04-05 22:07:55 +03:00
parent 1506845052
commit 89f605dac6

View File

@@ -2818,6 +2818,9 @@ function callPopup(text, type) {
$("#dialogue_popup_text").html(text); $("#dialogue_popup_text").html(text);
$("#shadow_popup").css("display", "block"); $("#shadow_popup").css("display", "block");
if (popup_type == 'input') {
$("#dialogue_popup_input").focus();
}
$("#shadow_popup").transition({ $("#shadow_popup").transition({
opacity: 1.0, opacity: 1.0,
duration: animation_rm_duration, duration: animation_rm_duration,