aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Robinson <robinsonvincent89@gmail.com>2020-08-23 06:40:34 -0700
committerGitHub <noreply@github.com>2020-08-23 15:40:34 +0200
commit47948793c16fc293c1d6b4ccee05421bc0864360 (patch)
tree9371ddbad7dd5325aa7bb22629bd16065d8588b3
parentf5a203fbcd3af358bc1639467014063ba8409d3e (diff)
downloadminetest-47948793c16fc293c1d6b4ccee05421bc0864360.tar.gz
minetest-47948793c16fc293c1d6b4ccee05421bc0864360.tar.bz2
minetest-47948793c16fc293c1d6b4ccee05421bc0864360.zip
Auto focus on OK button in main menu error messages (#10300)
-rw-r--r--builtin/fstk/ui.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin/fstk/ui.lua b/builtin/fstk/ui.lua
index 6d26aabf0..7eeebdd47 100644
--- a/builtin/fstk/ui.lua
+++ b/builtin/fstk/ui.lua
@@ -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),