diff --git a/kalamine/generators/klc.py b/kalamine/generators/klc.py index 60ff718..fd3b0e3 100644 --- a/kalamine/generators/klc.py +++ b/kalamine/generators/klc.py @@ -81,6 +81,8 @@ def klc_virtual_key(layout: "KeyboardLayout", symbols: list, scan_code: str) -> return "OEM_MINUS" elif base == " ": return "SPACE" + elif base == "-1" and shifted == "-1": + raise Exception("Empty keys are not allowed, please complete the description") else: MAX_OEM = 9 # We affect abitrary OEM VK and it will not match the one