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-05-26 02:27:11 +08:00
parent 8b134c31bb
commit 6249ec5d82
No known key found for this signature in database
GPG Key ID: 1C2D45D45AB7FE94
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,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)