Allow using macOS specific modifier key names in the config file
cmd and option can now be used instead of super and alt respectively.
This commit is contained in:
parent
0c4804db79
commit
fe1b056371
@ -51,7 +51,7 @@ def to_bool(x):
|
|||||||
def parse_mods(parts):
|
def parse_mods(parts):
|
||||||
|
|
||||||
def map_mod(m):
|
def map_mod(m):
|
||||||
return {'CTRL': 'CONTROL', 'CMD': 'CONTROL'}.get(m, m)
|
return {'CTRL': 'CONTROL', 'CMD': 'SUPER', 'OPTION': 'ALT'}.get(m, m)
|
||||||
|
|
||||||
mods = 0
|
mods = 0
|
||||||
for m in parts:
|
for m in parts:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user