How can I disable keyboard layout switching with both shift keys?

I’m using Ubuntu GNOME 16.04 LTS. During a recent automatic software update I was shown a debconf dialog, which is something that usually never happens in Ubuntu. The configuration in question was about switching between keyboard layouts. I think I just accepted the default.

Now pressing both Shift keys switches keyboard layouts in GNOME (and probably generally in X). This is pretty bad, since I’m using the Neo keyboard layout, where pressing both Shift keys is the way to toggle caps lock.

This new Shift + Shift layout switching is apparently separate from the GNOME layout switching. GNOME layout switching still works via Super + Space and shows me the pop-up with the keyboard layouts as usual. The new layout switching, however, doesn’t show any pop-up.

How can I disable this Shift + Shift layout switching again? I already tried sudo dpkg-reconfigure --priority=high x11-xkb-utils, but this didn’t offer me any configuration options.

Here is Solutions:

We have many solutions to this problem, But we recommend you to use the first solution because it is tested & true solution that will 100% work for you.

Solution 1

You were probably hit by bug #1762952. One way to fix it:

  1. Open /etc/default/keyboard for editing and replace the line starting with

    XKBOPTIONS
    

    with

    XKBOPTIONS=""
    
  2. Run this command to disable it from the desktop settings as well:

    gsettings reset org.gnome.desktop.input-sources xkb-options
    

Note: Use and implement solution 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply