philipl/evdevremapkeys

BUG: remapping doesn't always send key release event

Opened this issue · 1 comments

Example scenario: caps+hjkl are mapped as arrow keys.

Reproducing the bug:

  1. press KEY_CAPSLOCK
  2. press KEY_H; this sends "KEY_LEFT down"
  3. wait a few seconds for repeat to kick in
  4. release KEY_CAPSLOCK
  5. 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...