From ef25d5bbd59ba2d5bb72324d2b53b4110e84132b Mon Sep 17 00:00:00 2001 From: Luflosi Date: Fri, 30 Aug 2019 12:36:37 +0200 Subject: [PATCH] Fix update_encoding() not adding the last key --- kitty/key_encoding.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/key_encoding.py b/kitty/key_encoding.py index 81cc5c8b2..43acc9bcd 100644 --- a/kitty/key_encoding.py +++ b/kitty/key_encoding.py @@ -296,7 +296,7 @@ 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 val != defines.GLFW_KEY_UNKNOWN: + if val <= defines.GLFW_KEY_LAST and name != 'LAST' and val != defines.GLFW_KEY_UNKNOWN: if name not in ans: ans[name] = encode(i) i += 1