mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-25 10:27:24 +00:00
Allow for up to 256 keys instead of 128
This commit is contained in:
parent
97e6978ed8
commit
4037480d2b
1 changed files with 2 additions and 2 deletions
|
|
@ -314,7 +314,7 @@ def generate_key_table_impl(w):
|
|||
w('%d, /* %s */' % (key_count, key_name(k)))
|
||||
key_rmap.append(i)
|
||||
key_count += 1
|
||||
if key_count > 128:
|
||||
if key_count > 256:
|
||||
raise OverflowError('Too many keys')
|
||||
w('};\n')
|
||||
w('static inline const char* key_name(int key) { switch(key) {')
|
||||
|
|
@ -354,7 +354,7 @@ def generate_key_table_impl(w):
|
|||
ind('case 0x{:x}:'.format(mods))
|
||||
i += 1
|
||||
if key_bytes:
|
||||
ind('switch(key & 0x7f) { default: return NULL;')
|
||||
ind('switch(key & 0xff) { default: return NULL;')
|
||||
i += 1
|
||||
for key, (data, glfw_key) in key_bytes.items():
|
||||
ind('case {}: // {}'.format(key, key_name(keys[glfw_key])))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue