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

Attempting to map "ISO_Level3_Shift" to "space" results in "Returns" being generated. #94

Open mlaga97 opened 6 years ago

mlaga97 commented 6 years ago

After compiling and installing xcape (Commit 6ded5b) on Ubuntu 16.04.1 and running xcape -e 'ISO_Level3_Shift=space', I discovered that instead of producing a space as output, a return is generated instead.

I ran again with the debug (-d) option and was able to obtain the following output:

Assigned mapping from "ISO_Level3_Shift" ( keysym 0xfe03, key code 65)
to "space" (keysym 0x20, key code 66)
sig_handler running...
Intercepted key event 3, key code 36
Intercepted key event 2, key code 65
Key pressed!
Intercepted key event 3, key code 65
Key released!
Generating Return!
Ignoring generated event.
Ignoring generated event.
aizigao commented 6 years ago

I am try it to,I use like blew,but space will terriger 3 times

spare_modifier="ISO_Level3_Shift"
xmodmap -e "keycode 65 = $spare_modifier"

xmodmap -e "keycode any = space"

xcape -e "$spare_modifier=space"