mooz / xkeysnail

Yet another keyboard remapping tool for X environment
890 stars 112 forks source link

Multipurpose modifier keypresses are output even in quiet mode #134

Open onionsugar opened 3 years ago

onionsugar commented 3 years ago

Running xkeysnail with the -q flag still outputs certain keypresses (seemingly non-modifiers) when pressed as part of a multipurpose modmap.

Screenshot_2021-05-31_10-43-31

I've Esc mapped to presses and releases of Caps Lock with a multipurpose modmap, and only these Esc keypresses show up as output—not my actual Esc key. The other part of the modmap—LCtrl—doesn't show up in the keypress events.

This appears to affect non-modifiers. The image below shows a multipurpose modmap where Backspace was mapped to presses-and-releases and Esc when held with key. Both showed up in the output. However, Ctrl and Meta didn't when mapped in the same manner.

Screenshot_2021-06-07_22-25-06

Can't figure out how to map Super to define_multipurpose_modmap to see 'bout that too.

Steps to reproduce:

  1. Map any non-modifier key(s) to a multipurpose modmap
  2. Start xkeysnail -q in a terminal
  3. Trigger the non-modier key

Background info: OS: Artix Linux Kernel: linux 5.12.8 xkeysnail version: 0.4.0-1 (from the AUR)

joshgoebel commented 2 years ago

@onionsugar This is resolved for you now?