aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Schmitz <schmitzmic@gmail.com>2018-09-17 18:27:49 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2018-09-18 18:28:07 -0400
commit52d2c7bf7c90217fbe875d2d76f310979c48eb83 (patch)
treea76aa22bc2b3e572efc088f735716b16477ed588
parent9e62df51be993035c577371ffee5477697a56aad (diff)
Input: atakbd - fix Atari CapsLock behaviour
The CapsLock key on Atari keyboards is not a toggle, it does send the normal make and break scancodes. Drop the CapsLock toggle handling code, which did cause the CapsLock key to merely act as a Shift key. Tested-by: Michael Schmitz <schmitzmic@gmail.com> Signed-off-by: Michael Schmitz <schmitzmic@gmail.com> Signed-off-by: Andreas Schwab <schwab@linux-m68k.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
-rw-r--r--drivers/input/keyboard/atakbd.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/input/keyboard/atakbd.c b/drivers/input/keyboard/atakbd.c
index e989574a2e20..6caee807cafa 100644
--- a/drivers/input/keyboard/atakbd.c
+++ b/drivers/input/keyboard/atakbd.c
@@ -185,14 +185,8 @@ static void atakbd_interrupt(unsigned char scancode, char down)
185 185
186 scancode = atakbd_keycode[scancode]; 186 scancode = atakbd_keycode[scancode];
187 187
188 if (scancode == KEY_CAPSLOCK) { /* CapsLock is a toggle switch key on Amiga */ 188 input_report_key(atakbd_dev, scancode, down);
189 input_report_key(atakbd_dev, scancode, 1); 189 input_sync(atakbd_dev);
190 input_report_key(atakbd_dev, scancode, 0);
191 input_sync(atakbd_dev);
192 } else {
193 input_report_key(atakbd_dev, scancode, down);
194 input_sync(atakbd_dev);
195 }
196 } else /* scancodes >= 0xf3 are mouse data, most likely */ 190 } else /* scancodes >= 0xf3 are mouse data, most likely */
197 printk(KERN_INFO "atakbd: unhandled scancode %x\n", scancode); 191 printk(KERN_INFO "atakbd: unhandled scancode %x\n", scancode);
198 192