Formspec: fix fieldCloseOnEnter

This commit is contained in:
Van
2026-04-29 20:11:49 +03:00
parent 95bba1b02d
commit bbaf18f352

View File

@@ -563,7 +563,7 @@ end
--- Defaults to true when not specified (i.e. no tag for a field). --- Defaults to true when not specified (i.e. no tag for a field).
---@return Formspec ---@return Formspec
function Formspec:fieldCloseOnEnter(name, closeOnEnter) function Formspec:fieldCloseOnEnter(name, closeOnEnter)
local element = ('field_enter_after_edit[%s;%s]'):format( local element = ('field_close_on_enter[%s;%s]'):format(
name, closeOnEnter or false) name, closeOnEnter or false)
self:addElement(element) self:addElement(element)