Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 May 2009 19:50:34 GMT
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 162175 for review
Message-ID:  <200905161950.n4GJoYQH066714@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=162175

Change 162175 by hselasky@hselasky_laptop001 on 2009/05/16 19:50:30

	
	USB input:
	  - minor keycode swapping fix for Apple Keyboards

Affected files ...

.. //depot/projects/usb/src/sys/dev/usb/input/ukbd.c#7 edit

Differences ...

==== //depot/projects/usb/src/sys/dev/usb/input/ukbd.c#7 (text+ko) ====

@@ -459,8 +459,8 @@
 static uint8_t
 ukbd_apple_fn(uint8_t keycode) {
 	switch (keycode) {
+	case 0x28: return 0x49; /* RETURN -> INSERT */
 	case 0x2a: return 0x4c; /* BACKSPACE -> DEL */
-	case 0x2c: return 0x49; /* SPACE -> INSERT */
 	case 0x50: return 0x4a; /* LEFT ARROW -> HOME */
 	case 0x4f: return 0x4d; /* RIGHT ARROW -> END */
 	case 0x52: return 0x4b; /* UP ARROW -> PGUP */
@@ -472,8 +472,8 @@
 static uint8_t
 ukbd_apple_swap(uint8_t keycode) {
 	switch (keycode) {
-	case 0x35: return 0x64; /* 5 -> d */
-	case 0x64: return 0x35; /* d -> 5 */
+	case 0x35: return 0x64;
+	case 0x64: return 0x35;
 	default: return keycode;
 	}
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905161950.n4GJoYQH066714>