Keyboard layout change on hotkeys press instead of release

I use two layouts for my keyboard, and I assign “shift + alt” as a shortcut for changing the layout.
but this shortcut activates on press instead of release, and I cant use shortcuts like “shift + alt + f”

I saw a similar problem on the ubuntu xorg-server, I guess it’s the same. Bug #1683383