Fix layouts containing empty keys

This results in a key being the empty string and do not trigger an
error:

    key1="\"

Layouts are fixed and check_layout now checks for this case.
This commit is contained in:
Jules Aguillon
2024-01-10 00:24:13 +01:00
parent b319356a08
commit 329a35e7d3
5 changed files with 8 additions and 8 deletions

View File

@ -66,6 +66,7 @@ def check_layout(layout):
[ "f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9",
"f10", "f11", "f12" ],
"Layout contains function keys")
unexpected_keys(keys, [""], "Layout contains empty strings")
bottom_row_keys = [
"ctrl", "fn", "switch_numeric", "change_method", "switch_emoji",