Formspec: fix fieldCloseOnEnter
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user