diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-03-01 19:53:11 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-03-01 19:53:11 +0100 |
commit | 6bd2c26a85e3487f1647df91462fff9191632aed (patch) | |
tree | 694f90bd75e1b6094bdd60b515d38e2d32b8cde4 /sys/src/cmd/nusb | |
parent | 03ae4fa162221c0828e273fa2fe57d0347ef0f15 (diff) |
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
Diffstat (limited to 'sys/src/cmd/nusb')
-rw-r--r-- | sys/src/cmd/nusb/kb/kb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/nusb/kb/kb.c b/sys/src/cmd/nusb/kb/kb.c index dc37c337f..708ff05c3 100644 --- a/sys/src/cmd/nusb/kb/kb.c +++ b/sys/src/cmd/nusb/kb/kb.c @@ -623,7 +623,7 @@ startrepeat(KDev *f, uchar esc1, uchar sc) 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 |