Merge branch 'format_key_encoding' of https://github.com/Luflosi/kitty

This commit is contained in:
Kovid Goyal 2019-09-02 07:49:30 +05:30
commit 72f7cb3b7d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

4
kitty/key_encoding.py generated
View File

@ -298,7 +298,9 @@ def update_encoding():
for k in sorted(keys, key=lambda k: getattr(defines, k)):
val = getattr(defines, k)
name = symbolic_name(k)
if val <= defines.GLFW_KEY_LAST and name not in ('LAST', 'LAST_PRINTABLE') and val != defines.GLFW_KEY_UNKNOWN:
if val <= defines.GLFW_KEY_LAST and name not in (
'LAST', 'LAST_PRINTABLE'
) and val != defines.GLFW_KEY_UNKNOWN:
if name not in ans:
ans[name] = encode(i)
i += 1