HomeFreeBSD

hkbd(4): Fix key repeats on multireport keyboards

Description

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

(cherry picked from commit 598f0580f6822e2492231d055f49465a5b55d270)

Details

Provenance
wulfAuthored on Sep 9 2021, 9:40 PM
Parents
rG1dec30a65a31: hkbd(4): Use bitstring(3) KPI for key bitmaps processing.
Branches
Unknown
Tags
Unknown