layouts format: Add 'c' as a synonym for 'key0'

The attribute 'c' specifies the symbol in the center of a key, just like
'key0'. This adds consistency with the cardinal direction attributes and
is intended to make layouts more readable.
This commit is contained in:
Jules Aguillon
2024-11-24 10:56:19 +01:00
parent ed36098439
commit 6b1551d103
4 changed files with 40 additions and 41 deletions

View File

@ -10,9 +10,8 @@ KNOWN_NOT_LAYOUT = set([
"clipboard_bottom_row" ])
KEY_ATTRIBUTES = set([
"key0",
"key1", "key2", "key3", "key4", "key5", "key6", "key7", "key8",
"nw", "ne", "sw", "se", "w", "e", "n", "s"
"key0", "key1", "key2", "key3", "key4", "key5", "key6", "key7", "key8",
"c", "nw", "ne", "sw", "se", "w", "e", "n", "s"
])
def warn(msg):