Layout switch unwanted combination Rshift+Lshift

Bug #1791788 reported by Pavel
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
gnome-shell (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Ubuntu 18.04.1 LTS
Linux version 4.15.0-33-generic

WHAT I EXPECT TO HAPPEN:
"R-Shift + L-Shift" hotkey combination doesn't change keyboard layout when not configured to do so.

WHAT HAPPENS INSTEAD:
"R-Shift + L-Shift" changes keyboard layout even when not configured to do so.

------------------------------------------------------------------------------

My machine is set up to use "L-Alt + L-Shift" combination for switching keyboard layout between English and Russian. The command I use to configure this combination:

gsettings set org.gnome.desktop.input-sources xkb-options "['grp:lalt_lshift_toggle']"

With this setting Ubuntu also reacts to "R-Shift + L-Shift" combination and switches the layout as well. This is very irritating, since when typing the C code I often need to use macros like MY_MACRO_WITH_UNDERSCORE, where I naturally hit both shift keys when typing a capital letter after an underscore. The issue appears only when the R-Shift is hit before the L-Shift and not the other way around. The issue doesn't appear when I disable my switch combination with:

gsettings set org.gnome.desktop.input-sources xkb-options "['']"

I also disabled default Super+Space and Super+Shift+Space combinations, although that doesn't affect the issue. I didn't set any other keyboard combinations for switching layouts. The issue appears both in the terminal and in GUI applications.

Tags: bionic
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in udev (Ubuntu):
status: New → Confirmed
Revision history for this message
Alex Rudenko (alexei-rudenko) wrote :

It seems like whether lshift + rshift changes the layout depends on the other set combination. For example, changing keyboard layout on Left Alt would disable lshift + rshift as well as removing all switch combinations.

Revision history for this message
Alex Rudenko (alexei-rudenko) wrote :

Also, Alt + Shift would enable LShift + RShift whereas Left Alt + Left Shift would not.

affects: udev (Ubuntu) → ubuntu
affects: ubuntu → gnome-shell (Ubuntu)
tags: added: bionic
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.