Input: keyboard - also match braille-only keyboards
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 31 Jul 2010 09:28:51 +0000 (02:28 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 31 Jul 2010 09:29:31 +0000 (02:29 -0700)
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>
drivers/char/keyboard.c

index 54109dc9240ceb31581f060c8520d5e40c68bbf3..25be2102a60a064411f9955e6fe7c8339c2b2619 100644 (file)
@@ -1315,10 +1315,14 @@ static bool kbd_match(struct input_handler *handler, struct input_dev *dev)
        if (test_bit(EV_SND, dev->evbit))
                return true;
 
-       if (test_bit(EV_KEY, dev->evbit))
+       if (test_bit(EV_KEY, dev->evbit)) {
                for (i = KEY_RESERVED; i < BTN_MISC; i++)
                        if (test_bit(i, dev->keybit))
                                return true;
+               for (i = KEY_BRL_DOT1; i <= KEY_BRL_DOT10; i++)
+                       if (test_bit(i, dev->keybit))
+                               return true;
+       }
 
        return false;
 }