diff options
author | Bastien Nocera <hadess@hadess.net> | 2017-03-09 14:53:52 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2017-03-09 14:53:52 +0100 |
commit | b698b5cf8577d9538a6c87fbb582d34f97b3047b (patch) | |
tree | 100a07296b690c2faf6e8e03b8d3788c29201c34 /hwdb/parse_hwdb.py | |
parent | hwdb: Better documentation for keyboard quirks (diff) | |
download | systemd-b698b5cf8577d9538a6c87fbb582d34f97b3047b.tar.xz systemd-b698b5cf8577d9538a6c87fbb582d34f97b3047b.zip |
hwdb: Add property for keyboards without LEDs
It is useful for desktop environments to be able to show Caps-Lock or
Num-Lock status changes as an on-screen display when using a keyboard
that doesn't have LEDs for this.
Closes: #5559
Diffstat (limited to '')
-rwxr-xr-x | hwdb/parse_hwdb.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hwdb/parse_hwdb.py b/hwdb/parse_hwdb.py index b57e6f75aa..e2c65c4be0 100755 --- a/hwdb/parse_hwdb.py +++ b/hwdb/parse_hwdb.py @@ -112,6 +112,8 @@ def property_grammar(): ('ID_INPUT_TOUCHPAD_INTEGRATION', Or(('internal', 'external'))), ('XKB_FIXED_LAYOUT', STRING), ('XKB_FIXED_VARIANT', STRING), + ('KEYBOARD_LED_NUMLOCK', Literal('0')), + ('KEYBOARD_LED_CAPSLOCK', Literal('0')), ('ACCEL_MOUNT_MATRIX', mount_matrix), ) fixed_props = [Literal(name)('NAME') - Suppress('=') - val('VALUE') |