1
0
Mirror von https://github.com/luanti-org/luanti.git synchronisiert 2025-11-09 03:25:28 +01:00

Auto focus on OK button in main menu error messages (#10300)

Dieser Commit ist enthalten in:
Vincent Robinson
2020-08-23 06:40:34 -07:00
committet von GitHub
Ursprung f5a203fbcd
Commit 47948793c1

Datei anzeigen

@@ -64,6 +64,7 @@ function ui.update()
formspec = {
"size[14,8]",
"real_coordinates[true]",
"set_focus[btn_reconnect_yes;true]",
"box[0.5,1.2;13,5;#000]",
("textarea[0.5,1.2;13,5;;%s;%s]"):format(
fgettext("The server has requested a reconnect:"), error_message),
@@ -82,6 +83,7 @@ function ui.update()
formspec = {
"size[14,8]",
"real_coordinates[true]",
"set_focus[btn_error_confirm;true]",
"box[0.5,1.2;13,5;#000]",
("textarea[0.5,1.2;13,5;;%s;%s]"):format(
error_title, error_message),