fixed formspec on enter

This commit is contained in:
localhost_frssoft 2023-10-03 15:46:22 +03:00
parent 2f803a8105
commit 8e7a1f6af3
2 changed files with 3 additions and 1 deletions

View file

@ -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 = {}

View file

@ -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)