Skip to content

Commit 964e428

Browse files
committed
fix: Only translate key codes for mappings with special keys.
(ref. #9)
1 parent 2a8e50d commit 964e428

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lua/winshift/config.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,12 @@ function M.get_key_dir_map()
6363
local t = {}
6464

6565
for lhs, rhs in pairs(M._config.keymaps.win_move_mode) do
66-
t[utils.raw_key(lhs)] = rhs
66+
if lhs:match("%b<>") then
67+
-- Get raw key code for special keys
68+
lhs = utils.raw_key(lhs)
69+
end
70+
71+
t[lhs] = rhs
6772
end
6873

6974
return t

0 commit comments

Comments
 (0)