1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-30 19:22:14 +00:00

show key name in keybinding form

This commit is contained in:
y5nw 2025-05-25 00:42:47 +02:00 committed by y5nw
parent e441919c30
commit ac54772e46
3 changed files with 11 additions and 1 deletions

View file

@ -24,7 +24,7 @@ local function get_formspec(dialogdata)
local cells = {}
for _, key in ipairs(value) do
table.insert(cells, core.formspec_escape(key))
table.insert(cells, core.formspec_escape(core.get_keycode_name(key)))
end
table.insert(fs, ("textlist[0.5,1.3;5,4;keylist;%s;%d;false]"):format(table.concat(cells, ","), selection))