sway icon indicating copy to clipboard operation
sway copied to clipboard

'bindsym --release' emmits Escape + the binded key

Open litoj opened this issue 2 years ago • 2 comments

Description:

example config: bindsym --release Mod4+Mod1+q exec sleep 1 && echo random command When run in a shell, or vim for a better example, the Escape and q keys seem to get pressed. i3 forwards no keyboard output when using any keybindings

litoj avatar Oct 12 '22 19:10 litoj

I have the same issue after updating XWayland to 22.1.4. 22.1.3 works fine.

thesword53 avatar Oct 25 '22 10:10 thesword53

I am not using xwayland, for me its a problem in every app. Especially neovim, where using KP_Insert turns me into replace mode, although it was to be just a keyboard shortcut for sway.

litoj avatar Oct 25 '22 12:10 litoj

This shouldn't be that hard to fix, the key combo shouldn't be passed through when pressed just as a normal combo.

litoj avatar Jul 07 '23 13:07 litoj

I wanted to use the Space key as a left mouse key enabling the drap & drop by the sway config with ydotool. However, it seems that the bindsym --release doesn't sometimes react.

mode "media" {
    # Left down (drag and drop start)
    bindsym Space exec "sudo ydotool click 0x40"
    # Left up (drag and drop end)
    bindsym --release Space exec "sudo ydotool click 0x80"
    ...
}

junaruga avatar Sep 02 '23 10:09 junaruga

Seems to have been fixed - now, to eliminate key emission, just bund the key for nonrelease to nop

litoj avatar Apr 12 '24 13:04 litoj