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:
Kovid Goyal
2018-01-03 08:59:36 +05:30
parent 0c4804db79
commit fe1b056371

View File

@@ -51,7 +51,7 @@ def to_bool(x):
def parse_mods(parts):
def map_mod(m):
return {'CTRL': 'CONTROL', 'CMD': 'CONTROL'}.get(m, m)
return {'CTRL': 'CONTROL', 'CMD': 'SUPER', 'OPTION': 'ALT'}.get(m, m)
mods = 0
for m in parts: