Merge pull request #1003 from diath/fix_keyboard_desc

Fix an issue with key combo desc not working properly with integer keys
master
Konrad Kuśnierz 5 年前 提交者 GitHub
当前提交 710212c23a
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23

@ -26,6 +26,11 @@ local function retranslateKeyComboDesc(keyComboDesc)
if keyComboDesc == nil then
error('Unable to translate key combo \'' .. keyComboDesc .. '\'')
end
if type(keyComboDesc) == 'number' then
keyComboDesc = tostring(keyComboDesc)
end
local keyCombo = {}
for i,currentKeyDesc in ipairs(keyComboDesc:split('+')) do
for keyCode, keyDesc in pairs(KeyCodeDescs) do

正在加载...
取消
保存