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 for open devtools in Chrome, it just switch a layout. In VS code IDE if I press shortcuts with ctrl+shift (ctrl+shift+f etc.), shortcuts work but always switch a keyboard layout. When I used windows this problem didn't exist.

Can I set that the ctrl+shift shortcut causes a switch action only on keys release and only if this 2 keys was pressed (without additional keys).

up vote 8 down vote accepted

Try @N0rbert's answer first.


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).

It is known bug 1245473.

Nobody cares about it even on modern Ubuntu Community.

I'm citing my other answer here:

Myself I found only one resolution - I'll stay on Ubuntu 16.04 LTS MATE until 2021 year (really 2019 because it's Ubuntu flavor).

In Ubuntu 16.04 LTS MATE I use Ctrl+Shift without issues.


I have created PPA with patched packages for:

  • Ubuntu 16.04 LTS (xenial, with HWE);
  • Ubuntu 18.04 LTS (bionic);
  • Ubuntu 18.10 (cosmic).

You can test them by the following commands:

sudo add-apt-repository ppa:nrbrtx/xorg-hotkeys
sudo apt-get update
sudo apt-get dist-upgrade

Warranty disclaimer: packages were tested in:

  • Ubuntu 16.04 LTS with HWE (Unity, MATE, Xfce);
  • Ubuntu 18.04 LTS (Cinnamon, KDE, MATE, Xfce);
  • Ubuntu 18.10 (Cinnamon, KDE, MATE, Xfce).

However other desktops may have issues even after applying the patch.
For example these packages do not fix problems for GNOME Shell and Unity (in 18.04 LTS and 18.10).

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.