diff options
| author | Jules Aguillon | 2023-08-02 12:09:15 +0200 |
|---|---|---|
| committer | Jules Aguillon | 2023-08-02 12:09:15 +0200 |
| commit | 22458cd445be0a16772b2b3a7f8a1c44b4a2b7f8 (patch) | |
| tree | 5d1f086eb57ae399a031486e74f74f13610fa6e1 | |
| parent | 3598e19894282239f0ff75620c88dca43e09294a (diff) | |
| download | unexpected-keyboard-22458cd445be0a16772b2b3a7f8a1c44b4a2b7f8.tar.gz unexpected-keyboard-22458cd445be0a16772b2b3a7f8a1c44b4a2b7f8.zip | |
check_layout.py: Warn about editing and function keys
| -rw-r--r-- | check_layout.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/check_layout.py b/check_layout.py index 27a1f36..d242010 100644 --- a/check_layout.py +++ b/check_layout.py @@ -47,6 +47,15 @@ def check_layout(layout): missing_some_of(keys, ["f11_placeholder", "f12_placeholder"]) missing_some_of(keys, ["esc", "tab"]) missing_required(keys, ["backspace", "delete"], "Layout doesn't define some important keys") + unexpected_keys(keys, + ["copy", "paste", "cut", "selectAll", "shareText", + "pasteAsPlainText", "undo", "redo", "replaceText", + "textAssist", "autofill" ], + "Layout contains editing keys") + unexpected_keys(keys, + [ "f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", + "f10", "f11", "f12" ], + "Layout contains function keys") bottom_row_keys = [ "ctrl", "fn", "switch_numeric", "change_method", "switch_emoji", |
