ref: 1a2ccaf1fbd823c46113227b5396fac48d7f11b5
parent: 67b7dd718edf78942229e33d9449f96015f2a06e
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
--
⑨