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)