From 8e7a1f6af3390a74391288fe240a5d6f42c32c33 Mon Sep 17 00:00:00 2001 From: localhost_frssoft Date: Tue, 3 Oct 2023 15:46:22 +0300 Subject: [PATCH] fixed formspec on enter --- join.lua | 1 + onboard.lua | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/join.lua b/join.lua index b0ba784..4e5275f 100644 --- a/join.lua +++ b/join.lua @@ -11,6 +11,7 @@ local formspecfediadd = "size[9,10]" .. "label[1,7;Input your fediverse account handle]" .. "image[1.5,0.6;7,7;fediverse.png]" .. "field[1,9;4,1;fediverse_account_url;@nick@example.com;]" .. + "field_close_on_enter[fediverse_account_url;false]" .. "button[5,8.7;3,1;submit;Send code]" local feditempstore = {} diff --git a/onboard.lua b/onboard.lua index 76b065b..a12eb73 100644 --- a/onboard.lua +++ b/onboard.lua @@ -28,7 +28,8 @@ minetest.register_chatcommand("fediauth_on", { local formspec_account = "size[9,10]" .. "label[1,7;Input your fediverse account handle]" .. "image[1.5,0.6;7,7;fediverse.png]" .. - "field[1,9;4,1;fediverse_account_url;@nick@example.com;]" .. + "field[1,9;4,1;fediverse_account_url;@nick@example.com;]" .. + "field_close_on_enter[fediverse_account_url;false]" .. "button[5,8.7;3,1;submit;Send code]" minetest.show_formspec(name, FORMNAMEFEDI, formspec_account)