Skip to content

Commit c87d92b

Browse files
lentinjJiri Kosina
authored andcommitted
HID: lenovo: Don't set EV_REP to avoid repeating mice buttons
On the USB keyboard, the VENDOR hotkeys share the same device as the mouse. Setting EV_REP also affects mouse buttons, so leave it off. The bluetooth keyboard still has autorepeating mouse buttons, as it only has one device and is set by the KEYBOARD pages. Signed-off-by: Jamie Lentin <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 5556eb1 commit c87d92b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/hid/hid-lenovo.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ static int lenovo_input_mapping_cptkbd(struct hid_device *hdev,
6262
/* HID_UP_LNVENDOR = USB, HID_UP_MSVENDOR = BT */
6363
if ((usage->hid & HID_USAGE_PAGE) == HID_UP_MSVENDOR ||
6464
(usage->hid & HID_USAGE_PAGE) == HID_UP_LNVENDOR) {
65-
set_bit(EV_REP, hi->input->evbit);
6665
switch (usage->hid & HID_USAGE) {
6766
case 0x00f1: /* Fn-F4: Mic mute */
6867
map_key_clear(KEY_MICMUTE);

0 commit comments

Comments
 (0)