ref: 6bd2c26a85e3487f1647df91462fff9191632aed
parent: 03ae4fa162221c0828e273fa2fe57d0347ef0f15
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Fri Mar 1 14:53:11 EST 2013
nusb/kb: fix "Home" key producing "7" with some usb keyboards (import from sources patch/usb-khome) Fixes the problem with certain keyboards generating "7" on "Home" key press. http://9fans.net/archive/2013/03/8 http://9fans.net/archive/2013/03/10
--- a/sys/src/cmd/nusb/kb/kb.c
+++ b/sys/src/cmd/nusb/kb/kb.c
@@ -623,7 +623,7 @@
sendul(f->repeatc, c);
}
-#define hasesc1(sc) (((sc) > 0x47) || ((sc) == 0x38))
+#define hasesc1(sc) (((sc) >= 0x47) || ((sc) == 0x38))
/*
* This routine diffs the state with the last known state
--
⑨