fix(util): normkey

This commit is contained in:
Folke Lemaitre 2025-01-18 17:10:42 +01:00
parent 3a04064a86
commit cd58a14e20
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -286,7 +286,7 @@ function M.normkey(key)
return key_cache[key]
end
local k = key
key = key:gsub("<[aAmMcC]%-.>", string.upper)
key = key:gsub("<[aAmMcC]%-.>", string.lower)
if not key:match("^<[aAmMcC]%-.>$") then
key = vim.fn.keytrans(M.keycode(key))
end