11

I migrated from Mint 17.3 MATE to Mint 19 MATE and my Ctrl+Alt+Shift keyboard shortcuts stopped working.

If I try to enter a Ctrl+Alt+Shift shortcut in mate-keybinding-properties, the Alt doesn't register

For example: If I press Ctrl+Alt+Shift+X, it registers as Ctrl+Shift+X.

Is there a way to fix it?

Jimmy_A
  • 1,229
Petr Skocik
  • 1,472

5 Answers5

6

This is an Xorg bug and as I understand it manifests itself by Xorg giving preference to shorter shortcuts before more complex ones that include the same keys as a subset.

There is a patch in the Freedesktop bugzilla ticket and you can install it using the commands below (documented already in this Cinnamon issue on Github):

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

It is an old bug (check the bugtracker here), and there is a patch:

sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update

# install the patch from ppa
sudo apt-get dist-upgrade

Explanation

As I understood, Linux Mint starting from the version 19 uses the updated version of the XOrg-system, which uses the keypress event instead of the old good keyrelease, and now the shortest shortcuts hide the longer ones. This behavior is encouraged by XOrg itself.

The installed patch changes the settings of the XOrg (though, I'm not sure about the last statement).

mksm
  • 208
0
grep "_alt_" /usr/share/X11/xkb/rules/xorg

to view all binding with alt or ctrl altshiftx You can even modify it at your preference.

Yurij
  • 217
0

I started over from scratch (no problem there) and migrated only some of my select settings and everything worked all right.

Then the problem resurfaced when I added a different keyboard layout and set Alt+Shift as the key combo to switch layouts.

It looks like in Mint 19, unlike in Mint 17.3 (I imagine the underlying Ubuntus will probably be affected too), there's some kind of a conflict between the two settings.

I "solved" the problem by setting Both Alts as my layout switching combo, but I would call the conflict a bug.

Petr Skocik
  • 1,472
0

The problem only occurs when several keyboard layouts are installed (see https://github.com/linuxmint/Cinnamon/issues/766). I have removed my second layout and the shortkeys now run.

However: no shortkey was defined for the switch between the layouts, so I can't understand, why a problem occurred.