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
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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: