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 117 forks source link

Extra modifier does not work with Wine #73

Open renatofdds opened 8 years ago

renatofdds commented 8 years ago

Using space as extra modifier, e.g. Ctrl to emit Ctrl+A, does not work. Tested with Wine's notepad.exe.

Using: xcape 1.1.r13.g7fca364-1 wine 1.9.15

    spare_modifier="Hyper_R"
    xmodmap -e "keycode 65 = $spare_modifier"
    xmodmap -e "remove mod4 = $spare_modifier" # hyper_l is mod4 by default
    xmodmap -e "add Control = $spare_modifier"

    # Map space to an unused keycode (to keep it around for xcape to
    # use).
    xmodmap -e "keycode any = space"

    # Finally use xcape to cause the space bar to generate a space when tapped.
    xcape -e "$spare_modifier=space"

Note: Space is sent correctly after pressing and releasing and timeout works too.