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:
parent
e441919c30
commit
ac54772e46
3 changed files with 11 additions and 1 deletions
|
@ -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))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue