alols / xcape

Linux utility to configure modifier keys to act as other keys when pressed and released on their own.
GNU General Public License v3.0
2.1k stars 115 forks source link

virtualbox with xcape running in host #99

Open ndwarshuis opened 6 years ago

ndwarshuis commented 6 years ago

I'm using xcape in an Arch Linux host with virtualbox. Xcape works perfectly fine in host, but seems to send extra keypresses to the guest. Fir example, in the host I have return mapped to control in xkb and xcape'd back to return. Pressing return in the guest causes two returns to be sent to the guest. Disabling the return key in the guest causes no returns to be sent. This behavior is independent of guest os.

My best idea to fix this is to create a daemon that kills xcape when the virtualbox is in focus and restart when it loses focus (probably doable but seems overly complex). Does anyone else have a solution to this problem?