I have Ubuntu 16.04 with GNOME shell. I set ctrl+shift for the "Modifiers-only switch to next source" option.
This shortcut conflicts with apps hot-keys. I can't use ctrl+shift+i to open devtools in Chrome, it just switches the layout. In VS code IDE if I press shortcuts with ctrl+shift (for example ctrl+shift+f), shortcuts work but always switch a keyboard layout. When I used Windows this problem didn't exist.
Can I set the ctrl+shift shortcut in such a way that it causes a switch action only after the keys are released and only if this 2 keys were pressed (without additional keys)?
It is known bug 1245473.
Nobody cares about it even on modern Ubuntu Community.
I'm citing my other answer here:
In Ubuntu 16.04 LTS MATE I use Ctrl+Shift without issues.
I have created PPA with patched packages for:
You can test them by the following commands:
Warranty disclaimer: packages were tested in
However other desktops may have issues even after applying the patch.
These packages do not fix problems for GNOME Shell (18.04 LTS, 18.10, 19.04, 19.10, 20.04 LTS, 20.10 and 21.04) and Unity (in 18.04 LTS and 18.10). To remove GNOME Shell and install other desktop follow my other answers - for 18.04 LTS and for 20.04 LTS.
It's actually a bug (see this and this). Unfortunately it seems it's not going to be fixed (first one marked as "RESOLVED WONTFIX").
As a workaround you may have to remove those shortcuts and get used to the default ones to switch layouts (super+space & shift+super+space).