Dont output an error when none is used as a modifier
This commit is contained in:
parent
fe291dd769
commit
50f8aeeaf6
1 changed files with 2 additions and 1 deletions
|
|
@ -53,7 +53,8 @@ def map_mod(m: str) -> str:
|
|||
try:
|
||||
mods |= getattr(defines, 'GLFW_MOD_' + map_mod(m.upper()))
|
||||
except AttributeError:
|
||||
log_error('Shortcut: {} has unknown modifier, ignoring'.format(sc))
|
||||
if m.upper() != 'NONE':
|
||||
log_error('Shortcut: {} has unknown modifier, ignoring'.format(sc))
|
||||
return None
|
||||
|
||||
return mods
|
||||
|
|
|
|||
Loading…
Reference in a new issue