]> Git Repo - linux.git/commitdiff
HID: lenovo: Don't set EV_REP to avoid repeating mice buttons
authorJamie Lentin <[email protected]>
Sun, 9 Nov 2014 07:54:30 +0000 (07:54 +0000)
committerJiri Kosina <[email protected]>
Tue, 11 Nov 2014 10:46:33 +0000 (11:46 +0100)
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]>
drivers/hid/hid-lenovo.c

index 4716f1e59ecac3c953de5b4287223da141e2b749..4c55f4d95798794eed986c638c11b51d2e9d8375 100644 (file)
@@ -62,7 +62,6 @@ static int lenovo_input_mapping_cptkbd(struct hid_device *hdev,
        /* HID_UP_LNVENDOR = USB, HID_UP_MSVENDOR = BT */
        if ((usage->hid & HID_USAGE_PAGE) == HID_UP_MSVENDOR ||
            (usage->hid & HID_USAGE_PAGE) == HID_UP_LNVENDOR) {
-               set_bit(EV_REP, hi->input->evbit);
                switch (usage->hid & HID_USAGE) {
                case 0x00f1: /* Fn-F4: Mic mute */
                        map_key_clear(KEY_MICMUTE);
This page took 0.066581 seconds and 4 git commands to generate.