Treat devices with keys as keyboards

Some keyboards have an absolute axis and would erroneously not be treated
as a keyboard. Now any device with keys would have the ID_INPUT_KEY
property set.
This commit is contained in:
Arthur Williams
2021-05-02 04:40:16 -05:00
parent 6ca90e62ee
commit 3d188e78e8

View File

@@ -461,7 +461,8 @@ static void udev_device_set_properties_from_evdev(struct udev_device *udev_devic
}
}
}
else if (find_bit(ev_bits, ev_cnt, EV_KEY)) {
if (find_bit(ev_bits, ev_cnt, EV_KEY)) {
udev_list_entry_add(&udev_device->properties, "ID_INPUT_KEY", "1", 0);
if (find_bit(key_bits, key_cnt, KEY_ENTER)) {