abouttreesummaryrefslogcommitdiff
path: root/check_layout.py
diff options
context:
space:
mode:
Diffstat (limited to 'check_layout.py')
-rw-r--r--check_layout.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/check_layout.py b/check_layout.py
index dc4644a..500b10b 100644
--- a/check_layout.py
+++ b/check_layout.py
@@ -73,9 +73,7 @@ def check_layout(layout):
if len(dup) > 0: warn("Duplicate keys: " + key_list_str(dup))
missing_some_of(keys, "~!@#$%^&*(){}`[]=\\-_;:/.,?<>'\"+|", "ASCII punctuation")
missing_some_of(keys, "0123456789", "digits")
- missing_required(keys,
- ["loc esc", "loc tab", "backspace", "delete"],
- "Layout doesn't define some important keys")
+ missing_required(keys, ["backspace", "delete"], "Layout doesn't define some important keys")
unexpected_keys(keys,
["copy", "paste", "cut", "selectAll", "shareText",
"pasteAsPlainText", "undo", "redo" ],
@@ -89,6 +87,10 @@ def check_layout(layout):
unexpected_keys(keys, filter(lambda k: k.strip()!=k, keys), "Some keys contain whitespaces")
unexpected_keys(keys, ["f11_placeholder", "f12_placeholder"], "These keys are now added automatically")
+ if root.get("script", "latin") == "latin":
+ missing_required(keys, ["shift", "loc capslock"], "Missing important key")
+ missing_required(keys, ["loc esc", "loc tab"], "Missing programming keys")
+
_, bottom_row_keys, _ = parse_row("res/xml/bottom_row.xml")
if root.get("bottom_row") == "false":