summaryrefslogtreecommitdiff
path: root/scripts/makekeys
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/makekeys')
-rwxr-xr-xscripts/makekeys4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/makekeys b/scripts/makekeys
index f6a0280..e12925e 100755
--- a/scripts/makekeys
+++ b/scripts/makekeys
@@ -46,6 +46,10 @@ def print_entries(x):
print(' {{ 0x{value:08x}, {offs} }}, /* {name} */'.format(offs=entry_offsets[name], value=value, name=name))
print('static const struct name_keysym name_to_keysym[] = {')
+print_entries(sorted(entries, key=lambda e: e[0]))
+print('};\n')
+
+print('static const struct name_keysym name_to_keysym_icase[] = {')
print_entries(sorted(entries, key=lambda e: e[0].lower()))
print('};\n')