forked from luck/tmp_suning_uos_patched
Input: keyboard - also match braille-only keyboards
drivers/char/keyboard.c also handles braille keys, so it should also match braille-only keyboards. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
parent
ba9f507a1b
commit
53c1f76402
@ -1315,10 +1315,14 @@ static bool kbd_match(struct input_handler *handler, struct input_dev *dev)
|
|||||||
if (test_bit(EV_SND, dev->evbit))
|
if (test_bit(EV_SND, dev->evbit))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if (test_bit(EV_KEY, dev->evbit))
|
if (test_bit(EV_KEY, dev->evbit)) {
|
||||||
for (i = KEY_RESERVED; i < BTN_MISC; i++)
|
for (i = KEY_RESERVED; i < BTN_MISC; i++)
|
||||||
if (test_bit(i, dev->keybit))
|
if (test_bit(i, dev->keybit))
|
||||||
return true;
|
return true;
|
||||||
|
for (i = KEY_BRL_DOT1; i <= KEY_BRL_DOT10; i++)
|
||||||
|
if (test_bit(i, dev->keybit))
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user