rules: uinput: Do not register KEY_MAX

As doing so makes no sense.

Signed-off-by: Rongrong <i@rong.moe>
This commit is contained in:
Rongrong 2026-06-18 00:25:19 +08:00
parent 25b14b568a
commit 8296eea51c
No known key found for this signature in database
GPG Key ID: 1C2D45D45AB7FE94
1 changed files with 1 additions and 1 deletions

View File

@ -240,7 +240,7 @@ if evdev:
}
# uinput capability for keyboard keys, mouse buttons, and scrolling
key_events = [c for n, c in evdev.ecodes.ecodes.items() if n.startswith("KEY") and n != "KEY_CNT"]
key_events = [c for n, c in evdev.ecodes.ecodes.items() if n.startswith("KEY") and n not in {"KEY_CNT", "KEY_MAX"}]
for _, evcode in buttons.values():
if evcode:
key_events.append(evcode)