PATCH: fix up capslock on pc9800

Alan Cox (alan@lxorguk.ukuu.org.uk)
Tue, 8 Apr 2003 01:16:33 +0100


diff -u --new-file --recursive --exclude-from /usr/src/exclude linux-2.5.67/drivers/input/keyboard/98kbd.c linux-2.5.67-ac1/drivers/input/keyboard/98kbd.c
--- linux-2.5.67/drivers/input/keyboard/98kbd.c 2003-03-26 19:59:51.000000000 +0000
+++ linux-2.5.67-ac1/drivers/input/keyboard/98kbd.c 2003-04-03 23:41:43.000000000 +0100
@@ -189,6 +189,13 @@
input_sync(&kbd98->dev);
return;

+ case KEY_CAPSLOCK:
+ input_report_key(&kbd98->dev, keycode, 1);
+ input_sync(&kbd98->dev);
+ input_report_key(&kbd98->dev, keycode, 0);
+ input_sync(&kbd98->dev);
+ return;
+
case KBD98_KEY_NULL:
return;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/