Fix keymap bug

This commit is contained in:
hrsh7th
2021-09-19 13:40:27 +09:00
parent 7c8876330d
commit 13e8b61371
2 changed files with 5 additions and 32 deletions

View File

@@ -142,7 +142,7 @@ end
---Keypress handler
core.on_keymap = function(keys, fallback)
for key, action in pairs(config.get().mapping) do
if key == keys then
if keymap.equals(key, keys) then
if type(action) == 'function' then
action(fallback)
else