Auto focus on OK button in main menu error messages (#10300)
parent
f5a203fbcd
commit
47948793c1
|
@ -64,6 +64,7 @@ function ui.update()
|
||||||
formspec = {
|
formspec = {
|
||||||
"size[14,8]",
|
"size[14,8]",
|
||||||
"real_coordinates[true]",
|
"real_coordinates[true]",
|
||||||
|
"set_focus[btn_reconnect_yes;true]",
|
||||||
"box[0.5,1.2;13,5;#000]",
|
"box[0.5,1.2;13,5;#000]",
|
||||||
("textarea[0.5,1.2;13,5;;%s;%s]"):format(
|
("textarea[0.5,1.2;13,5;;%s;%s]"):format(
|
||||||
fgettext("The server has requested a reconnect:"), error_message),
|
fgettext("The server has requested a reconnect:"), error_message),
|
||||||
|
@ -82,6 +83,7 @@ function ui.update()
|
||||||
formspec = {
|
formspec = {
|
||||||
"size[14,8]",
|
"size[14,8]",
|
||||||
"real_coordinates[true]",
|
"real_coordinates[true]",
|
||||||
|
"set_focus[btn_error_confirm;true]",
|
||||||
"box[0.5,1.2;13,5;#000]",
|
"box[0.5,1.2;13,5;#000]",
|
||||||
("textarea[0.5,1.2;13,5;;%s;%s]"):format(
|
("textarea[0.5,1.2;13,5;;%s;%s]"):format(
|
||||||
error_title, error_message),
|
error_title, error_message),
|
||||||
|
|
Loading…
Reference in New Issue