Skip to content

Commit

Permalink
Auto focus on OK button in main menu error messages (#10300)
Browse files Browse the repository at this point in the history
  • Loading branch information
v-rob committed Aug 23, 2020
1 parent f5a203f commit 4794879
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions builtin/fstk/ui.lua
Expand Up @@ -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),
Expand All @@ -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),
Expand Down

0 comments on commit 4794879

Please sign in to comment.