[parisc-linux-cvs] fix for Windows-Keys on PS/2 Keyboard/HPPA

Helge Deller deller@gmx.de
Tue, 8 Jan 2002 21:37:39 +0100


--------------Boundary-00=_RYZMRUQFZ8YTXMHKP20X
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 8bit

On Tuesday 08 January 2002 21:31, Helge Deller wrote:
> CVSROOT:	/var/cvs
> Module name:	linux
> Changes by:	deller	02/01/08 13:31:55
>
> Modified files:
> 	drivers/char   : hp_keyb.c
>
> Log message:
> add E0_MSLW (Left Windows key code) as 0x7f key into the e0_keys[] table,
> fixes the "Unrecognized scancode e0 7f" error with a Windows-Keyboad
> on HPPA while pressing Left-, Right- or Windows-Menu keys.
> But I still don't understand why all those keys give 0x7f; maybe it's not
> the right fix ?

--------------Boundary-00=_RYZMRUQFZ8YTXMHKP20X
Content-Type: text/plain;
  charset="iso-8859-1";
  name="diff"
Content-Transfer-Encoding: 8bit
Content-Disposition: attachment; filename="diff"

Index: hp_keyb.c
===================================================================
RCS file: /var/cvs/linux/drivers/char/hp_keyb.c,v
retrieving revision 1.7
diff -u -p -r1.7 hp_keyb.c
--- hp_keyb.c	2001/12/20 23:39:36	1.7
+++ hp_keyb.c	2002/01/08 20:29:11
@@ -333,7 +333,7 @@ static unsigned char e0_keys[128] = {
   0, 0, 0, 0, 0, 0, 0, 0,			      /* 0x60-0x67 */
   0, 0, 0, 0, 0, 0, 0, E0_MACRO,		      /* 0x68-0x6f */
   0, 0, 0, 0, 0, 0, 0, 0,			      /* 0x70-0x77 */
-  0, 0, 0, 0, 0, 0, 0, 0			      /* 0x78-0x7f */
+  0, 0, 0, 0, 0, 0, 0, E0_MSLW			      /* 0x78-0x7f */
 };
 
 int pckbd_setkeycode(unsigned int scancode, unsigned int keycode)

--------------Boundary-00=_RYZMRUQFZ8YTXMHKP20X--