Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 52d2c7bf authored by Michael Schmitz's avatar Michael Schmitz Committed by Dmitry Torokhov
Browse files

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: default avatarMichael Schmitz <schmitzmic@gmail.com>
Signed-off-by: default avatarMichael Schmitz <schmitzmic@gmail.com>
Signed-off-by: default avatarAndreas Schwab <schwab@linux-m68k.org>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 9e62df51
Loading
Loading
Loading
Loading
+2 −8
Original line number Diff line number Diff line
@@ -185,14 +185,8 @@ static void atakbd_interrupt(unsigned char scancode, char down)

		scancode = atakbd_keycode[scancode];

		if (scancode == KEY_CAPSLOCK) {	/* CapsLock is a toggle switch key on Amiga */
			input_report_key(atakbd_dev, scancode, 1);
			input_report_key(atakbd_dev, scancode, 0);
			input_sync(atakbd_dev);
		} else {
		input_report_key(atakbd_dev, scancode, down);
		input_sync(atakbd_dev);
		}
	} else				/* scancodes >= 0xf3 are mouse data, most likely */
		printk(KERN_INFO "atakbd: unhandled scancode %x\n", scancode);