]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - hwdb/parse_hwdb.py
hwdb: support pressing buttons on a keyboard
[thirdparty/systemd.git] / hwdb / parse_hwdb.py
index 23809a9f1fc3fc6d1f0a744497f43edcab635839..c7b49b83df66ac32cff6f39b695ed8abd581b21c 100755 (executable)
@@ -172,7 +172,9 @@ def check_one_keycode(prop, value):
     if value != '!' and ecodes is not None:
         key = 'KEY_' + value.upper()
         if key not in ecodes:
-            error('Keycode {} unknown', key)
+            key = value.upper()
+            if key not in ecodes:
+                error('Keycode {} unknown', key)
 
 def check_properties(groups):
     grammar = property_grammar()