From 329a35e7d368db79938d026cdec749021e427b5e Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Wed, 10 Jan 2024 00:24:13 +0100 Subject: 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. --- check_layout.py | 1 + 1 file changed, 1 insertion(+) (limited to 'check_layout.py') diff --git a/check_layout.py b/check_layout.py index efa34d8..23481ad 100644 --- a/check_layout.py +++ b/check_layout.py @@ -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", -- cgit v1.2.3