evdevremapkeys
evdevremapkeys copied to clipboard
BUG: remapping doesn't always send key release event
Example scenario: caps+hjkl are mapped as arrow keys.
Reproducing the bug:
- press KEY_CAPSLOCK
- press KEY_H; this sends "KEY_LEFT down"
- wait a few seconds for repeat to kick in
- release KEY_CAPSLOCK
- release KEY_H
Result: "KEY_LEFT up" event is never sent; as far as the OS is concerned, KEY_LEFT stays pressed permanently now.
Repeat is probably messing it up...