Blacklist GLFW_KEY_LAST_PRINTABLE in kitty/keys.py

This commit is contained in:
Luflosi 2019-09-02 21:20:08 +02:00
parent 87059a2004
commit 59f64c5e33
No known key found for this signature in database
GPG Key ID: 14140F703B7D8362

View File

@ -304,7 +304,7 @@ def generate_key_table_impl(w):
def key_name(k): def key_name(k):
return k[len('GLFW_KEY_'):] return k[len('GLFW_KEY_'):]
keys = {v: k for k, v in vars(defines).items() if k.startswith('GLFW_KEY_') and k not in {'GLFW_KEY_LAST', 'GLFW_KEY_UNKNOWN'}} keys = {v: k for k, v in vars(defines).items() if k.startswith('GLFW_KEY_') and k not in {'GLFW_KEY_LAST', 'GLFW_KEY_LAST_PRINTABLE', 'GLFW_KEY_UNKNOWN'}}
key_rmap = [] key_rmap = []
for i in range(number_of_keys): for i in range(number_of_keys):
k = keys.get(i) k = keys.get(i)