mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 02:38:46 +00:00
fix(util): normkey
This commit is contained in:
parent
3a04064a86
commit
cd58a14e20
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue