Files
deb-lite-xl/data/core/modkeys-macos.lua
Guldomanandtakase1121 3d93e16597 Normalize strokes in fixed order (#1572)
* Use normalized strokes when removing duplicates only when appropriate

* Use normalized stroke in `keymap.unbind`

* Normalize strokes by sorting the modifiers before the keys

This also sorts the modifiers in a fixed manner, decided by 
`modkeys.keys`.
We need to do this because we display the strokes in a few places like 
the command palette.
2023-08-26 08:52:10 +08:00

19 lines
437 B
Lua

local modkeys = {}
modkeys.map = {
["left command"] = "cmd",
["right command"] = "cmd",
["left ctrl"] = "ctrl",
["right ctrl"] = "ctrl",
["left shift"] = "shift",
["right shift"] = "shift",
["left option"] = "option",
["right option"] = "option",
["left alt"] = "alt",
["right alt"] = "altgr",
}
modkeys.keys = { "ctrl", "alt", "option", "altgr", "shift", "cmd" }
return modkeys