mirror of
https://github.com/Julow/Unexpected-Keyboard.git
synced 2025-08-09 11:55:58 +02:00
Allow to specify a layout script
Add the `script` attribute, which will be used to implement script-specific extra keys.
This commit is contained in:
@ -61,6 +61,9 @@ def check_layout(layout):
|
||||
unexpected_keys(keys, bottom_row_keys,
|
||||
"Layout contains keys present in the bottom row")
|
||||
|
||||
if root.get("script") == None:
|
||||
warn("Layout doesn't specify a script.")
|
||||
|
||||
for fname in sys.argv[1:]:
|
||||
layout = parse_layout(fname)
|
||||
if layout == None:
|
||||
|
Reference in New Issue
Block a user