]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
hkbd(4): Fix key repeats on multireport keyboards
authorVladimir Kondratyev <wulf@FreeBSD.org>
Thu, 9 Sep 2021 21:40:13 +0000 (00:40 +0300)
committerVladimir Kondratyev <wulf@FreeBSD.org>
Thu, 9 Sep 2021 21:40:13 +0000 (00:40 +0300)
commit598f0580f6822e2492231d055f49465a5b55d270
tree183aab87bcf5cb55b29dfa3004acda06fb881b4c
parent04918395f18dfb115dc0fe2865780dc607c5dc71
hkbd(4): Fix key repeats on multireport keyboards

Currently hkbd counts all key states to be "Up" at the start of
interrupt callback. That results in generation of "Key Up" event for
each key that has been downed before but is not listed in current
report while is still downed.

Fix that with clearing of temporary key data storage bits only for
keys contained in processed report.

Reported by: Greg V
Obtained from: sysutils/iichid
MFC after: 2 weeks
sys/dev/hid/hkbd.c