[parisc-linux-cvs] scan code 0x7f works from bootup
Richard Hirst
rhirst@linuxcare.com
Thu, 20 Dec 2001 23:38:56 +0000
Make scancode 0x7f generate keycode 86 by default. The default kernel
keymap has 86 mapped to < > and | chars (AltGr to get |). On a UK
keyboard the 0x7f key as \ | on it, and loading a uk keymap maps keycode
86 to those symbols. Apparently some .de and .no keyboards have 0x7f
key labeled with < > and (maybe) |, so this might just work for them too.
+EXTRAVERSION = -pa22
Index: drivers/char/hp_keyb.c
===================================================================
RCS file: /var/cvs/linux/drivers/char/hp_keyb.c,v
retrieving revision 1.6
diff -u -r1.6 hp_keyb.c
--- drivers/char/hp_keyb.c 2001/11/29 19:29:38 1.6
+++ drivers/char/hp_keyb.c 2001/12/20 23:29:12
@@ -267,6 +267,12 @@
#define FOCUS_PF12 123
#define JAP_86 124
+
+/* On one Compaq UK keyboard, at least, bar/backslash generates scancode
+ * 0x7f. 0x7f generated on some .de and .no keyboards also.
+ */
+#define UK_86 86
+
/* tfj@olivia.ping.dk:
* The four keys are located over the numeric keypad, and are
* labelled A1-A4. It's an rc930 keyboard, from
@@ -284,7 +290,7 @@
0, 0, 0, 0, 0, FOCUS_PF11, 0, FOCUS_PF12, /* 0x68-0x6f */
0, 0, 0, FOCUS_PF2, FOCUS_PF9, 0, 0, FOCUS_PF3, /* 0x70-0x77 */
FOCUS_PF4, FOCUS_PF5, FOCUS_PF6, FOCUS_PF7, /* 0x78-0x7b */
- FOCUS_PF8, JAP_86, FOCUS_PF10, 0 /* 0x7c-0x7f */
+ FOCUS_PF8, JAP_86, FOCUS_PF10, UK_86 /* 0x7c-0x7f */
};
/* BTC */