mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-30 19:22:14 +00:00
partial 2
This commit is contained in:
parent
fc6238ae4e
commit
98aabd4ba4
4 changed files with 86 additions and 3 deletions
|
@ -505,10 +505,12 @@ function make.key(setting)
|
|||
return table.concat(fs), height
|
||||
end,
|
||||
|
||||
on_submit = function(self, fields)
|
||||
on_submit = function(self, fields, tabview)
|
||||
if fields[btn_bind] then
|
||||
core.settings:set(setting.name, fields[btn_bind])
|
||||
return true
|
||||
elseif fields[btn_edit] then
|
||||
return show_change_keybinding_dlg(setting, tabview)
|
||||
elseif fields[btn_clear] then
|
||||
core.settings:set(setting.name, "")
|
||||
return true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue