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:
parent
25b14b568a
commit
8296eea51c
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue