]> git.baikalelectronics.ru Git - kernel.git/commit
Input: adbhid - capslock and power button fix
authorRodney Lorrimar <rodney@rodney.id.au>
Mon, 5 May 2008 15:59:24 +0000 (11:59 -0400)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 16 May 2008 18:50:10 +0000 (14:50 -0400)
commit64753405f7779c07a113910dcfaaf8886f71787b
tree4aa4bb8ff87d1a01058a8c9061ecf09b15f8c930
parentb42a1e564c47ea2ed1966615e91f033ee2f5706c
Input: adbhid - capslock and power button fix

If the adbhid module parameter restore_capslock_events is used,
pressing the power button may confuse the capslock state. This is
because the power button release scancode (0xff) is sometimes the same
as the capslock press/release scancode.

This fix adds yet another flag to track the state of the power button
so that it works independently of capslock.

Signed-off-by: Rodney Lorrimar <rodney@rodney.id.au>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/macintosh/adbhid.c