mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-04 14:46:03 +00:00
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 parse_mods(parts: Iterable[str], sc: str) -> Optional[int]:
|
|||
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…
Add table
Add a link
Reference in a new issue