git: 9front

Download patch

ref: 50fa73307c0c29e2c4053883758e71f846dec414
parent: 69383a0eab00214fdaec6b8559d64a52e7e60733
author: ftrvxmtrx <ftrvxmtrx@gmail.com>
date: Thu Jan 1 17:53:17 EST 2015

nusb/kb: fix alt/altgr being swapped for some reason

--- a/sys/src/cmd/nusb/kb/kb.c
+++ b/sys/src/cmd/nusb/kb/kb.c
@@ -117,7 +117,7 @@
 [0xc8]	0x0,	0x0,	0x0,	0x0,	0x0,	0x0,	0x0,	0x0,
 [0xd0]	0x0,	0x0,	0x0,	0x0,	0x0,	0x0,	0x0,	0x0,
 [0xd8]	0x0,	0x0,	0x0,	0x0,	0x0,	0x0,	0x0,	0x0,
-[0xe0]	0x1d,	0x2a,	0xb8,	0xfd,	0xe1,	0x36,	0xe4,	0xfe,
+[0xe0]	0x1d,	0x2a,	0x38,	0xfd,	0xe1,	0x36,	0xb8,	0xfe,
 [0xe8]	0x0,	0x0,	0x0,	0x0,	0x0,	0xf3,	0xf2,	0xf1,
 [0xf0]	0x0,	0x0,	0x0,	0x0,	0x0,	0x0,	0x0,	0x0,
 [0xf8]	0x0,	0x0,	0x0,	0x0,	0x0,	0x0,	0x0,	0x0,
@@ -639,7 +639,7 @@
 			if(f->kinfd < 0){
 				f->kinfd = open("/dev/kbin", OWRITE);
 				if(f->kinfd < 0)
-					hdfatal(f, "open /dev/kbdin");
+					hdfatal(f, "open /dev/kbin");
 
 				f->repeatc = chancreate(sizeof(ulong), 0);
 				if(f->repeatc == nil)
--