mirror of
https://github.com/Julow/Unexpected-Keyboard.git
synced 2025-08-09 01:35:06 +02:00
check_layout: Warn against whitespaces and "loc"
This commit is contained in:
@ -80,6 +80,8 @@ def check_layout(layout):
|
||||
"f10", "f11", "f12" ],
|
||||
"Layout contains function keys")
|
||||
unexpected_keys(keys, [""], "Layout contains empty strings")
|
||||
unexpected_keys(keys, ["loc"], "Special keyword cannot be a symbol")
|
||||
unexpected_keys(keys, filter(lambda k: k.strip()!=k, keys), "Some keys contain whitespaces")
|
||||
|
||||
_, bottom_row_keys, _ = parse_row("res/xml/bottom_row.xml")
|
||||
|
||||
|
Reference in New Issue
Block a user