1
0
Fork 0
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:
y5nw 2025-05-24 23:16:14 +02:00 committed by y5nw
parent fc6238ae4e
commit 98aabd4ba4
4 changed files with 86 additions and 3 deletions

View file

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