* Make keyboard.c match braille-only keyboards
@ 2010-07-30 20:41 Samuel Thibault
2010-07-31 9:43 ` Dmitry Torokhov
0 siblings, 1 reply; 2+ messages in thread
From: Samuel Thibault @ 2010-07-30 20:41 UTC (permalink / raw)
To: Dmitry Torokhov, Alan Jenkins; +Cc: Andrew Morton, linux-kernel, linux-input
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>
diff --git a/drivers/char/keyboard.c b/drivers/char/keyboard.c
index 54109dc..25be210 100644
--- a/drivers/char/keyboard.c
+++ b/drivers/char/keyboard.c
@@ -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;
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: Make keyboard.c match braille-only keyboards
2010-07-30 20:41 Make keyboard.c match braille-only keyboards Samuel Thibault
@ 2010-07-31 9:43 ` Dmitry Torokhov
0 siblings, 0 replies; 2+ messages in thread
From: Dmitry Torokhov @ 2010-07-31 9:43 UTC (permalink / raw)
To: Samuel Thibault, Alan Jenkins, Andrew Morton, linux-kernel,
linux-input
On Fri, Jul 30, 2010 at 10:41:18PM +0200, Samuel Thibault wrote:
> drivers/char/keyboard.c also handles braille keys, so it should also match
> braille-only keyboards.
>
Applied to 'next', thanks Samuel.
--
Dmitry
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-07-31 9:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-30 20:41 Make keyboard.c match braille-only keyboards Samuel Thibault
2010-07-31 9:43 ` Dmitry Torokhov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).