Can't set keyboard layout change to alt+shift, ctrl+shift, etc.

Bug #1218322 reported by Simplehuman
This bug affects 1027 people
Affects Status Importance Assigned to Milestone
GNOME Settings Daemon
Unknown
Unknown
System76
New
Undecided
Unassigned
Ubuntu Flashback
New
Undecided
Unassigned
Ubuntu GNOME
Fix Released
High
Unassigned
Declined for Stable by Tim Lunn
Ubuntu GNOME Flashback
New
Undecided
Unassigned
gnome-control-center (ALT Linux)
Invalid
Medium
gnome-control-center (Baltix)
Confirmed
High
Mantas Kriaučiūnas
gnome-control-center (Gentoo Linux)
Unknown
Unknown
gnome-control-center (Mandriva)
Unknown
Unknown
gnome-control-center (Ubuntu)
Fix Released
High
William Hua
Nominated for Trusty by Tim Lunn
gnome-settings-daemon (Ubuntu)
Triaged
High
William Hua
Nominated for Trusty by Tim Lunn

Bug Description

[Impact]

Can't set keyboard layout change to Ctrl+Shift, Caps Lock, Alt+Shift, etc. Shift, Caps Lock keys are just ignored in settings.

[Test Case]

- open gnome-control-center's text input settings
- click on the "next layout key" entry
- try entering a combination of two modifier keys such as Ctrl+Shift
-> the UI should reflect the new keys

- add at least two input sources through gnome-control-center's text entry
  settings
- press and release Ctrl+Shift
-> the current input source should change

[Regression Potential]

That UI was not working before, it should only be an improvement (some key combos are not working as expected, that's another issue and shouldn't be mixed with this one)

The input switching shortcut might capture other non-modifier shortcuts, but users will need to consider this when choosing their switching shortcut anyways. For users this bug affects, this represents a working solution for a critical bug.

--

Test results for different keyboard layout change hotkeys may be viewed and added in the Google Docs table, created by Norbert (https://docs.google.com/spreadsheet/ccc?key=0Ao5e713Ig9g_dEJrX2NRYlpLWWVzSWxsVXU4ck9HYVE&usp=sharing).

You can use the tag keyboard-layout-switching-hotkeys to find related bugs.
https://bugs.launchpad.net/ubuntu/+bugs?field.tag=keyboard-layout-switching-hotkeys

For using layout switching hotkeys in Unity Greeter, see bug 1245137.
For using layout switching hotkeys in GNOME lockscreen, see bug 1244548.
For using layout switching hotkeys in GNOME FlashBack sessions, see bug 1687466 (at least <Alt+Shift>).

--

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: indicator-keyboard 0.0.0+13.10.20130829.1-0ubuntu1
ProcVersionSignature: Ubuntu 3.11.0-2.5-generic 3.11.0-rc5
Uname: Linux 3.11.0-2-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.12.1-0ubuntu2
Architecture: amd64
Date: Thu Aug 29 14:21:54 2013
InstallationDate: Installed on 2013-07-31 (28 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Alpha amd64 (20130730)
MarkForUpload: True
ProcEnviron:
 LANGUAGE=ru_UA:ru
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=ru_UA.UTF-8
 SHELL=/bin/bash
SourcePackage: indicator-keyboard
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Simplehuman (simplehuman) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in indicator-keyboard (Ubuntu):
status: New → Confirmed
Revision history for this message
Alex_ander (ks-alexandr) wrote :

confirm this problem, don't work with Alt+Shift too.

Revision history for this message
Alexander Kubashin (kubashin-a) wrote :

Can't set keyboard switch to Caps Lock (preferred), alt+shift, ctrl+shift etc. Working combination: ctrl+space and 'menu' (both variants uncomfortably for me).

description: updated
Revision history for this message
suslikk (suslikkreal) wrote :

same bug

2 comments hidden view all 549 comments
Revision history for this message
skybon (skybon-deactivatedaccount-deactivatedaccount) wrote :

Does not work with Alt+Shift either. This or very similar bug was reported at GNOME bug tracker.
https://bugzilla.gnome.org/show_bug.cgi?id=681685

Revision history for this message
Simplehuman (simplehuman) wrote :

Artem Vorotnikov (skybon), it happened right after new indicator-keyboard arrived.

Revision history for this message
Norbert (nrbrtx) wrote :

I confirm this bug (Regular Ubuntu 13.10).

Revision history for this message
Igor Zubarev (igor.zubarev) wrote :

Confirm for Saucy Beta Final amd64.

Revision history for this message
Dmitry Shachnev (mitya57) wrote :

If you set the shortcut via gnome-tweak-tool, layout changing will work (though indicator-keyboard still won't work).

Changed in indicator-keyboard (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → High
Changed in gnome-control-center (Ubuntu):
status: New → Triaged
importance: Undecided → High
Revision history for this message
robi1h (robi1h) wrote :

Confirmed, doesent work me eather Shift+Tab (Ubuntu 13.10 64bit)

Revision history for this message
Mike (0x656b694d) wrote :

Setting the shortcut via gnome-tweak-tool has no effect for me.

Revision history for this message
Anatoly (anatoly-shipov) wrote :

I confirm this bug, too. Affects most ubuntu users from CIS countries who are used to Alt+Shift|Ctrl+Shift layout switching. Any workaround?

Revision history for this message
loquens (loquens) wrote :

At first for me worked this advise: https://bugs.launchpad.net/ubuntu/+source/indicator-keyboard/+bug/1215826/comments/14#ubuntu

But later it stopped working, and now I am only able to switch layout via modified+symbol key (I use ctrl-space now, but it's not comfortable, as it interferes with app's shortcuts) :(

Revision history for this message
peerus (tsifra) wrote :

Also had problem with alt-shift combinations set via region and language settings. Solved it by: gnome-tweak-tool -> typing -> key(s) to change layout -> disable

Revision history for this message
Nick Ocheredko (nick-ocheredko) wrote :

Confirm this bug - the only available combination is Super+Space which cannot be changed. The workaround via gnome-tweak-tool does not work at all.

Revision history for this message
Alex_ander (ks-alexandr) wrote :

Confirm, still no work, my favorite combination is Ctrl+Shift don't work on a Unity 7 (ubuntu-desktop).

Revision history for this message
Dmitry Shachnev (mitya57) wrote :

Actually this is maybe an issue in gnome-settings-daemon, which doesn't update org.gnome.desktop.input-sources/current key when shortcuts are pressed.

affects: gnome-control-center (Ubuntu) → gnome-settings-daemon (Ubuntu)
Revision history for this message
peerus (tsifra) wrote :

Have just checked left ctrl + left shift and it works again. My problem with layout switching was directly related with "key(s) to change layout -> disable". Maybe you should try logout & relogin.

My system: fresh install of ubuntu gnome 13.04 -> upgrade via "update-manager -d" to 13.10 beta.

Revision history for this message
peerus (tsifra) wrote :

How i've troubleshoot my problem. After upgrade from 13.04 to 13.10 i've noticed that if i press super + space layoyt indicator changes so does input. En-Ru-En.

If i press alt-shift only indicator changes. but If i try to enter text it's still english. after "key(s) to change layout -> disable" alt-shift doen't make sense only super-space works. then i changed super-space to alt-shift in regional and language settings and it works like expected.

Revision history for this message
Tolchi (sehoon-park) wrote :

most of koreans favorite key combination to change korean-english is shift+space

this combination is no longer avaliable...

Revision history for this message
peerus (tsifra) wrote :

I feel like another my problem is related somehow with this bug. Please see https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1235586 and leave your comments there if you can reproduce described situation.

Revision history for this message
N1ck 7h0m4d4k15 (nicktux) wrote :

You can try gnome-tweak-tool.
I can change the keyboard layout from English to Greek with [Alt+Shift] but the icon indicator (up right) remains as is [En].

Revision history for this message
Jacob Popov (j-a-popov) wrote :

I confirm the bug with the current Saucy.
Using gnome-tweak-tool makes the keyboard switched using XKB, which isn't quite good. Currently Ubuntu relies on iBus, if i'm not mistaken? Therefore the gnome-tweak-tool workaround is not OK, as the indicator doesn't notice any layout changes then.

Which is more, after the yesterday's update I cannot change the layout even with Super+Space any more! No reasonable working hotkey left! So far I'm sticking to Shift+Alt and ignore the indicator.

By the way, why using the indicator which doesn't work?
1) Layout switching in the command-line interface is done ONLY with XKB! We should somehow keep the layout changing hotkeys in XKB similar to the ones used in GUI, shouldn't we?
2) For now, XKB works fine, while the indicator fails. Maybe the indicator should rely on XKB, or at least track the layout change in XKB?

Revision history for this message
Jacob Popov (j-a-popov) wrote :

peerus, that's quite different bug. Although it's annoying as well, it's reason lurks somewhere else. The patches from that thread seem to do nothing with this bug.

Revision history for this message
Maxim Kuznetsov (mackuzzz) wrote :

In 13.04 there is ability to change layout while button is pressed. I'm using Caps key. And in 13.10 i can't find any place to make these changes.

Revision history for this message
Stixy90 (sasha-govrin) wrote :

In 13.04 there is ability to change layout while button is pressed. I'm using Ctrl+Shift key. And in 13.10 i can't find any place to make these changes.

Revision history for this message
Ivan Kukobko (ivan-kukobko) wrote :

"Text Entry" config recognizes my "Super" (Windows) key as "Mod4+Super+Hyper". Any idea how can I fix it?

Revision history for this message
VoaNerges (gotham48) wrote :

Hey, guys, can someone run dconf-editor find org -> gnome -> desktop -> input-sources and change xkb-options to ['grp:alt_shift_toggle,grp_led:scroll'] and then switch layout by Alt-Shift? Just to test.

This helped me.

Revision history for this message
shkiper325 (shkiper325-deactivatedaccount) wrote : Re: [Bug 1218322] Re: Can't set keyboard layout change to ctrl+shift

Yup, fixing config in dconf-editor helped for me.
But En/Ru indicator didn't change.

2013/10/11 VoaNerges <email address hidden>

> Hey, guys, can someone run dconf-editor find org -> gnome -> desktop ->
> input-sources and change xkb-options to
> ['grp:alt_shift_toggle,grp_led:scroll'] and then switch layout by Alt-
> Shift? Just to test.
>
> This helped me.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1218322
>
> Title:
> Can't set keyboard layout change to ctrl+shift
>
> Status in “gnome-settings-daemon” package in Ubuntu:
> Triaged
> Status in “indicator-keyboard” package in Ubuntu:
> Triaged
>
> Bug description:
> Can't set keyboard layout change to ctrl+shift, Caps Lock, alt+shift
> etc. "Shift", "CapsLock" keys are just ignored in settings. Also the
> default shortcut was set to "Super+Space" that is inconveniently,
> because Dash is opening when you swich your keyboard layout.
>
> ProblemType: Bug
> DistroRelease: Ubuntu 13.10
> Package: indicator-keyboard 0.0.0+13.10.20130829.1-0ubuntu1
> ProcVersionSignature: Ubuntu 3.11.0-2.5-generic 3.11.0-rc5
> Uname: Linux 3.11.0-2-generic x86_64
> NonfreeKernelModules: nvidia
> ApportVersion: 2.12.1-0ubuntu2
> Architecture: amd64
> Date: Thu Aug 29 14:21:54 2013
> InstallationDate: Installed on 2013-07-31 (28 days ago)
> InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Alpha amd64
> (20130730)
> MarkForUpload: True
> ProcEnviron:
> LANGUAGE=ru_UA:ru
> PATH=(custom, no user)
> XDG_RUNTIME_DIR=<set>
> LANG=ru_UA.UTF-8
> SHELL=/bin/bash
> SourcePackage: indicator-keyboard
> UpgradeStatus: No upgrade log present (probably fresh install)
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/1218322/+subscriptions
>

Revision history for this message
Norbert (nrbrtx) wrote : Re: Can't set keyboard layout change to ctrl+shift

I confirm this bug on Ubuntu 13.10, unable to change layout with Ctrl+Shift or Alt+Shift (set in Gnome Control Center -> Keyboard -> Layouts).

Revision history for this message
loquens (loquens) wrote :

VoaNerges (gotham48), yes, setting toggle key via dconf-editor worked for me, but language icon is not changing upon switch

Revision history for this message
Egmont Koblinger (egmont-gmail) wrote :

I've upgraded from previous versions where I had Alt+Shift as the shortcut toggling between English and Hungarian. Now, not being to specify this, I chose Ctrl+Space. The current behavior is:
- If I select English in the indicator or via Ctrl+Space then the layout is English, and Alt+Shift does nothing.
- If I select Hungarian in the indicator or via Ctrl+Space then the layout is initially Hungarian but Alt+Shift toggles between En and Hu, but without updating the indicator.
Total chaos.

In Text Entry Settings, if I press the Windows key plus Space, I get "Mod4+Super+Hyper+Space" displayed -- what the heck??? Mod4 and Hyper, what the hell are those, and why aren't they shown on the Keyboard Layout Chart, and why does the dialog claim I pressed them? And how do I revert to the previous value which was simply Super+Space?

Moreover, Ctrl+Space (my currently specified shortcut) only works if I press Ctrl, press Space, release Space and finally release Ctrl in this order. If I release the two keys in reverse order (which is way more natural for me as my hand quickly rolls over the two keys, rather than stopping and moving backwards) then it doesn't work. Yet again a total usability failure.

This whole thing is a complete disaster :(

Revision history for this message
Theodore Zahov (tzahov) wrote :

I confirm the bug. Currently trying to make a fresh install of 13.10 latest beta or daily, but both are buggy. "Alt-shift" is gone and even "Super+space" does not work. Instead I get "Mod4+Super+Hyper+space" crazy combination. Extremely annoying and makes the distro unusable for me.

summary: - Can't set keyboard layout change to ctrl+shift
+ Can't set keyboard layout change to ctrl+shift and more
Theodore Zahov (tzahov)
summary: - Can't set keyboard layout change to ctrl+shift and more
+ Can't set keyboard layout change to ctrl+shift
Revision history for this message
Raven (doom-raven) wrote :

I confirm this bug on Ubuntu 13.10 х64

Revision history for this message
Igor Zubarev (igor.zubarev) wrote :

Still can't set keyboard layout change to ctrl+shift, Caps Lock, alt+shift etc.

Revision history for this message
suslikk (suslikkreal) wrote :

I'm very sad :(

William Hua (attente)
Changed in indicator-keyboard (Ubuntu):
assignee: nobody → William Hua (attente)
Changed in gnome-settings-daemon (Ubuntu):
assignee: nobody → William Hua (attente)
Revision history for this message
Miroslav Hadzhiev (xtigyro) wrote :

Confirmed under Ubuntu Saucy (of today, through the daily iso images).

Shahar Or (mightyiam)
summary: - Can't set keyboard layout change to ctrl+shift
+ Can't set keyboard layout change to alt+shift, ctrl+shift, etc.
William Hua (attente)
Changed in gnome-settings-daemon (Ubuntu):
status: Triaged → In Progress
Changed in gnome-control-center (Ubuntu):
status: New → In Progress
assignee: nobody → William Hua (attente)
Changed in indicator-keyboard:
status: New → Invalid
Changed in indicator-keyboard (Ubuntu):
status: Triaged → Invalid
Changed in indicator-keyboard:
status: Invalid → Confirmed
assignee: nobody → Alexander Olgin (alexander-a-olgin)
Valery (g-valery)
Changed in indicator-keyboard (Ubuntu):
status: Invalid → Confirmed
khadeja (muslimaqq)
Changed in indicator-keyboard (Ubuntu):
assignee: William Hua (attente) → khadeja (muslimaqq)
DarkFess (regent-43)
Changed in gnome-settings-daemon (Ubuntu):
status: In Progress → Confirmed
Changed in gnome-control-center (Ubuntu):
status: In Progress → Confirmed
Changed in indicator-keyboard (Ubuntu):
assignee: khadeja (muslimaqq) → William Hua (attente)
Changed in indicator-keyboard:
assignee: Alexander Olgin (alexander-a-olgin) → nobody
Norbert (nrbrtx)
tags: removed: amd64
affects: indicator-keyboard → ubuntu
affects: ubuntu → indicator-keyboard
Changed in gnome-control-center (Ubuntu):
importance: Undecided → High
Changed in ubuntu-gnome:
status: New → Confirmed
Changed in gnome-settings-daemon (Ubuntu):
status: Confirmed → Triaged
Changed in gnome-control-center (Ubuntu):
status: Confirmed → Triaged
Changed in indicator-keyboard (Ubuntu):
status: Confirmed → Triaged
Changed in hundredpapercuts:
status: New → Confirmed
assignee: nobody → Paper Cuts Ninja (papercuts-ninja)
Changed in indicator-keyboard (Ubuntu):
status: Triaged → Invalid
Changed in indicator-keyboard (Ubuntu Saucy):
status: New → In Progress
importance: Undecided → High
Changed in hundredpapercuts:
status: Confirmed → Invalid
Changed in indicator-keyboard (Ubuntu Saucy):
status: In Progress → Invalid
Changed in indicator-keyboard:
status: Confirmed → Invalid
importance: Undecided → High
Changed in gnome-control-center (Ubuntu Saucy):
importance: Undecided → High
Changed in gnome-settings-daemon (Ubuntu Saucy):
importance: Undecided → High
Changed in gnome-control-center (Ubuntu):
status: Triaged → Fix Committed
Changed in ubuntu-gnome:
importance: Undecided → High
Changed in gnome-control-center (Ubuntu Saucy):
status: New → In Progress
description: updated
Changed in gnome-settings-daemon (Ubuntu Saucy):
status: New → Confirmed
Changed in gnome-settings-daemon (Ubuntu Saucy):
status: Confirmed → Triaged
William Hua (attente)
description: updated
Adam Conrad (adconrad)
Changed in gnome-control-center (Ubuntu Saucy):
status: In Progress → Fix Committed
tags: added: verification-needed
Changed in gnome-settings-daemon (Ubuntu Saucy):
status: Triaged → Fix Committed
tags: added: verification-failed
removed: verification-needed
tags: added: verification-needed
removed: verification-failed
Changed in hundredpapercuts:
assignee: Paper Cuts Ninja (papercuts-ninja) → nobody
tags: added: verification-done
removed: verification-needed
tags: added: verification-failed
removed: verification-done
tags: added: verification-done
removed: verification-failed
Changed in gnome-settings-daemon (Ubuntu):
status: Triaged → Fix Committed
Changed in ubuntu-gnome:
status: Confirmed → Fix Committed
Changed in indicator-keyboard (Ubuntu):
assignee: William Hua (attente) → nobody
Changed in gnome-settings-daemon (Ubuntu):
assignee: William Hua (attente) → nobody
Changed in gnome-control-center (Ubuntu):
assignee: William Hua (attente) → nobody
Changed in gnome-settings-daemon (Ubuntu Saucy):
status: Fix Committed → Fix Released
Changed in gnome-settings-daemon (Ubuntu Saucy):
status: Fix Released → Fix Committed
Roman Bedroš (ja-beda)
Changed in indicator-keyboard (Ubuntu Saucy):
status: Invalid → Fix Released
Changed in indicator-keyboard (Ubuntu Saucy):
status: Fix Released → Invalid
William Hua (attente)
description: updated
Adam Conrad (adconrad)
tags: removed: verification-done
tags: added: verification-needed
Changed in gnome-control-center (Ubuntu):
status: Fix Committed → In Progress
Changed in gnome-control-center (Ubuntu Saucy):
status: Fix Committed → In Progress
Changed in gnome-settings-daemon (Ubuntu):
status: Fix Committed → In Progress
Changed in hundredpapercuts:
importance: Undecided → Medium
Changed in gnome-settings-daemon (Ubuntu Saucy):
status: Fix Committed → In Progress
Changed in ubuntu-gnome:
status: Fix Committed → In Progress
Changed in gnome-control-center (Ubuntu Saucy):
status: In Progress → Fix Committed
Changed in ubuntu-gnome:
status: In Progress → Fix Committed
Changed in gnome-settings-daemon (Ubuntu Saucy):
status: In Progress → Fix Committed
Changed in gnome-settings-daemon (Ubuntu):
status: In Progress → Fix Committed
Changed in gnome-control-center (Ubuntu):
status: In Progress → Fix Committed
Changed in gnome-control-center (Ubuntu):
status: Fix Committed → Invalid
Changed in gnome-control-center (Ubuntu Saucy):
status: Fix Committed → Invalid
tags: added: verification-failed
tags: removed: verification-failed
yufw (yynyygy)
Changed in indicator-keyboard (Ubuntu Saucy):
status: Invalid → Fix Released
Norbert (nrbrtx)
description: updated
Changed in indicator-keyboard (Ubuntu Saucy):
status: Fix Released → Invalid
Norbert (nrbrtx)
description: updated
Norbert (nrbrtx)
description: updated
Norbert (nrbrtx)
description: updated
Norbert (nrbrtx)
description: updated
Norbert (nrbrtx)
description: updated
Norbert (nrbrtx)
description: updated
Norbert (nrbrtx)
description: updated
Norbert (nrbrtx)
description: updated
Norbert (nrbrtx)
description: updated
Norbert (nrbrtx)
description: updated
no longer affects: indicator-keyboard (Ubuntu)
no longer affects: gnome-control-center (Ubuntu)
no longer affects: gnome-control-center (Ubuntu Saucy)
no longer affects: indicator-keyboard (Ubuntu Saucy)
no longer affects: hundredpapercuts
affects: indicator-keyboard → hundredpapercuts
no longer affects: gnome-settings-daemon
affects: hundredpapercuts → gnome-settings-daemon
Changed in gnome-settings-daemon:
status: Invalid → Fix Committed
tags: added: verification-failed
removed: verification-needed
Changed in gnome-settings-daemon (Ubuntu):
status: Fix Committed → Triaged
Changed in gnome-settings-daemon (Ubuntu Saucy):
status: Fix Committed → Triaged
Changed in ubuntu-gnome:
status: Fix Committed → Confirmed
Changed in gnome-settings-daemon:
status: Fix Committed → Confirmed
Changed in gnome-settings-daemon (Ubuntu):
assignee: nobody → William Hua (attente)
Changed in gnome-settings-daemon (Ubuntu Saucy):
assignee: nobody → William Hua (attente)
Changed in gnome-settings-daemon:
assignee: nobody → William Hua (attente)
Changed in gnome-control-center (Ubuntu):
importance: Undecided → High
status: New → Triaged
tags: added: verification-done
removed: verification-failed
Changed in gnome-control-center (Ubuntu):
status: Triaged → Fix Released
Changed in gnome-settings-daemon (Ubuntu Saucy):
status: Triaged → Fix Released
Changed in gnome-control-center (Ubuntu):
assignee: nobody → William Hua (attente)
Changed in gnome-settings-daemon (Ubuntu):
status: Triaged → Fix Released
Norbert (nrbrtx)
description: updated
Changed in gnome-settings-daemon (Ubuntu):
status: Fix Released → Triaged
Changed in gnome-control-center (Ubuntu):
status: Fix Released → Triaged
Changed in gnome-settings-daemon (Ubuntu Saucy):
status: Fix Released → Triaged
Changed in gnome-settings-daemon:
status: Confirmed → Invalid
Changed in gnome-settings-daemon:
assignee: William Hua (attente) → nobody
Norbert (nrbrtx)
description: updated
Changed in gnome-settings-daemon (Ubuntu):
status: Triaged → Fix Released
Norbert (nrbrtx)
description: updated
Changed in gnome-settings-daemon (Ubuntu Saucy):
status: Triaged → Fix Released
Changed in gnome-control-center (Ubuntu):
status: Triaged → Fix Released
Iain Lane (laney)
Changed in gnome-control-center (Ubuntu):
status: Fix Released → Fix Committed
Changed in gnome-control-center (Ubuntu):
status: Fix Committed → Fix Released
Norbert (nrbrtx)
description: updated
Changed in gnome-settings-daemon (Ubuntu Saucy):
status: Fix Released → Triaged
Changed in gnome-settings-daemon (Ubuntu):
status: Fix Released → Triaged
Changed in gnome-control-center (Ubuntu):
status: Fix Released → Triaged
tags: removed: verification-done
tags: added: verification-needed
Norbert (nrbrtx)
tags: added: keyboard-layout-switching-hotkeys
tags: added: keyboard-layout-switching-related
Norbert (nrbrtx)
description: updated
description: updated
tags: added: verification-done
removed: verification-needed
Norbert (nrbrtx)
tags: added: verification-failed
removed: verification-done
description: updated
Lockal (lockal)
tags: added: regression
tags: added: verification-done
removed: verification-failed
Norbert (nrbrtx)
tags: added: verification-failed
removed: verification-done
tags: added: verification-done
removed: verification-failed
Changed in gnome-control-center (Ubuntu):
status: Triaged → Fix Released
William Hua (attente)
description: updated
503 comments hidden view all 549 comments
Revision history for this message
In , Norbert (nrbrtx) wrote :

Description of problem:
In previous GNOME versions (for example, in 3.4) I was able to set keyboard layout switching to Alt+Shift, Ctrl+Shift, both Shifts, etc. In AltLinux p7 I can't set it from gnome-control-center keyboard.
This bug come from GNOME.

Version-Release number of selected component (if applicable):
gnome-control-center 3.8.6-alt0.M70P.1

How reproducible:
Go to gnome-control-center keyboard and try to set Alt+Shift or Ctrl+Shift as layout switching keys.

Steps to Reproduce:
1. Go to gnome-control-center keyboard (Shortcuts -> Typing)
2. Try to set Alt+Shift or Ctrl+Shift at 'Switch to next input source'
3. Get 'Disabled' in 'Switch to next input source'.

If you set default Super+Space - it set and work normally, but it is not comfortable and universal for all users.

This bug is very hot in Ubuntu 13.10 too (689 users are affected, see https://bugs.launchpad.net/bugs/1218322), but Canonical fixed it.

Changed in gnome-control-center (Mandriva):
importance: Unknown → High
status: Unknown → Confirmed
Revision history for this message
In , Aris-x (aris-x) wrote :

Shortcuts -> Typing -> Modifiers-only switch to next source

Revision history for this message
In , Norbert (nrbrtx) wrote :

Спасибо, Юрий!
Но сочетания Ctrl+Shift+C/V на русской раскладке в терминале и выделение текста по Ctrl+Shift+стрелки не работают если переключение поставлено на привычное Ctrl+Shift. Мне создать новый багрепорт здесь или писать сразу в апстрим?

Revision history for this message
In , Aris-x (aris-x) wrote :

Это у вас с одной стороны не работает, -- используйте другую. В апстрим написать можете, но проще приспособиться.
Мне, например, правым Ctrl-ом удобно переключаться.

Revision history for this message
In , Norbert (nrbrtx) wrote :

Спасибо! Действительно "другая сторона" работает. Но в апстрим я все-таки написал (https://bugzilla.gnome.org/show_bug.cgi?id=712667).

Этот (29591) баг можем закрывать. Спасибо!

Changed in gnome-control-center (Mandriva):
status: Confirmed → Invalid
Norbert (nrbrtx)
tags: added: trusty
Shahar Or (mightyiam)
description: updated
Changed in gnome-control-center (Gentoo Linux):
importance: Unknown → Medium
status: Unknown → Invalid
tags: added: ubuntu-desktop-trusty
Norbert (nrbrtx)
description: updated
description: updated
Jonas Juodė (jonukas)
Changed in gnome-control-center (Baltix):
status: New → Confirmed
assignee: nobody → Mantas Kriaučiūnas (mantas)
description: updated
Norbert (nrbrtx)
description: updated
Changed in gnome-control-center (Baltix):
importance: Undecided → High
Norbert (nrbrtx)
description: updated
Norbert (nrbrtx)
description: updated
Norbert (nrbrtx)
description: updated
Norbert (nrbrtx)
description: updated
Tmin10 (tmin10)
information type: Public → Public Security
information type: Public Security → Public
Mathew Hodson (mhodson)
no longer affects: gnome-control-center (Fedora)
Changed in gnome-settings-daemon:
importance: High → Unknown
status: Invalid → Unknown
Mathew Hodson (mhodson)
tags: added: regression-release
removed: regression
Changed in elementaryos:
importance: Undecided → High
milestone: none → freya-rc1
status: New → Confirmed
Rolf Leggewie (r0lf)
Changed in gnome-settings-daemon (Ubuntu Saucy):
status: Triaged → Won't Fix
Changed in ubuntu-gnome:
milestone: none → vivid
Changed in ubuntu-gnome:
status: Confirmed → Triaged
Changed in ubuntu-gnome:
status: Triaged → Fix Released
Mathew Hodson (mhodson)
tags: removed: keyboard-layout-switching-related
Mathew Hodson (mhodson)
tags: added: amd64
Mathew Hodson (mhodson)
description: updated
tags: removed: ubuntu-desktop-trusty
Norbert (nrbrtx)
tags: removed: amd64
description: updated
description: updated
Mathew Hodson (mhodson)
description: updated
Mathew Hodson (mhodson)
tags: added: gnome3 ubuntu-gnome
Mathew Hodson (mhodson)
tags: added: metabug
37 comments hidden view all 549 comments
Revision history for this message
Cody Garver (codygarver) wrote :

Tracked by elementary OS @ bug #1357895

no longer affects: elementaryos
Revision history for this message
Allan Deamon (rea-aft) wrote :

I can't type Esperanto. The option button that allows me turn on Esperanto Circumflexes is gone! Does Gnome project hates people that speaks Esperanto?

Revision history for this message
Norbert (nrbrtx) wrote :

Guys I'm sorry, but it seems that bug is returned in the newest Ubuntu 15.04 final.
I set Russian and English layouts while installing.

Now I can't use Alt+Shift in GNOME FlashBack session.

Gnome-control-center shows this shortcut as "Shift+Alt+Next Group", but language is switched because of /etc/default/keyboard
(
cat /etc/default/keyboard
# KEYBOARD CONFIGURATION FILE

# Consult the keyboard(5) manual page.

XKBMODEL="pc105"
XKBLAYOUT="us,ru"
XKBVARIANT=","
XKBOPTIONS="grp:alt_shift_toggle,grp_led:scroll"

BACKSPACE="guess"
)
but indicator-keyboard does not react on language change.
It is unbelievable.

Revision history for this message
akiyamka (akiyamka) wrote :

The exact same crap, before update everything was ok!

Revision history for this message
vadison (vadison) wrote :

I have this bug too in Ubuntu Gnome 15.04.

Revision history for this message
Artem (artemb) wrote :

The same at Lubuntu 15.04 vivid , all updates 05.27.2015

Revision history for this message
Onime (g-gatenashvili) wrote :

Still have same problem Ubuntu 14.04, Update 01.06.2015

Revision history for this message
Yotam Benshalom (benshalom) wrote :

Not working for me on Ubuntu 15.04. This breaks Gnome for me.
gnome-tweak-tool allows me to set alt+shift as a shortcut for layout switching, but it doesn't actually work.

Mathew Hodson (mhodson)
affects: gnome-control-center (Gentoo Linux) → gentoo
Changed in gentoo:
importance: Medium → Undecided
status: Invalid → New
no longer affects: gnome-settings-daemon (Ubuntu Saucy)
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in ubuntu:
status: New → Confirmed
Mathew Hodson (mhodson)
affects: gentoo → ubuntu
no longer affects: ubuntu
affects: gnome-control-center (Mandriva) → ubuntu
Changed in ubuntu:
importance: High → Undecided
status: Invalid → New
no longer affects: ubuntu
Mathew Hodson (mhodson)
affects: gnome-control-center (ALT Linux) → ubuntu
Changed in ubuntu:
importance: Unknown → Undecided
status: Unknown → New
no longer affects: ubuntu
Mathew Hodson (mhodson)
description: updated
Revision history for this message
Oleg Moiseichuk (berroll) wrote :

This bug affects my system (Ubuntu 16.04.1 amd64, Gnome Flashback session with Compiz). One-key keyboard layout switchers (I tested Right Alt, Right Super, Right Control) don't work, while two-key switchers work (checked several of them). If I run Unity session, these one-key switchers work properly. Is it a bug of g-s-d, or I should open the bug in gnome-flashback section?

Revision history for this message
Norbert (nrbrtx) wrote :

Got this bug on Ubuntu 16.04 (updated from 12.04). Unable to use Alt+Shift on GNOME Metacity session.
gnome-control-center says that I use "Alt+Shift L" or "Alt+Next Group", but it does not work.

Do you plan to fix this bug?

tags: added: xenial
Revision history for this message
Norbert (nrbrtx) wrote :

I reported new bug #1687466 about GNOME FlashBack sessions.

Revision history for this message
Norbert (nrbrtx) wrote :

I reported new bug 1687588 about text blinking on selection with <Ctrl+Shift+arrow> while layout switcher is set to <Ctrl+Shift>.

description: updated
Revision history for this message
Veron Rado (junket) wrote :

I think this is related to my bug 1705522 where "Gnome Tweak Tool/Typing/Miscellaneous compatibility options/Apple Aluminium Keyboard: emulate PC (Print, Scroll Lock Pause, Num Lock)" doesn't work.

Ubuntu 17.04

Norbert (nrbrtx)
tags: added: artful
Revision history for this message
Norbert (nrbrtx) wrote :

17.10 is affected by this bug. Only gnome-tweak-tool is the solution.

Revision history for this message
asdqweasd (asdqweasd) wrote :

Again? Ubuntu 17.10 is affected this time.

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

On 2017-11-03 07:21, asdqweasd wrote:
> Again? Ubuntu 17.10 is affected this time.

Try gnome-tweak-tool, as Norbert wrote, "Additional Layout Options".

Revision history for this message
Mikhail V. Golubev (mvgolubev) wrote :

> Try gnome-tweak-tool, as Norbert wrote, "Additional Layout Options".

In Wayland (libinput) keyboard key combinations work on key press (not on key release).
So if I set Ctrl+Shift combination for switching layout (changing keyboard language) in "Additional Layout Options", after that I can't use any other Ctrl+Shift+AnyKey combinations. For example a I can't reopen closed tabs in Web-browser (Chrome/Firefox) using Ctrl+Shift+T key combination.

How to change this wayland/libinput behavior?
I want use Ctrl+Shift for swithing keyboard layout and at the same time use Ctrl+Shift+T to re-open closed tabs in web-browser.

Revision history for this message
Norbert (nrbrtx) wrote :

Dear Mikhail and all!

I have a discussion on Maillist (https://lists.ubuntu.com/archives/ubuntu-devel-discuss/2017-May/017419.html) about keyboard layout switching. It has no positive results.

I have reported <Ctrl+Shift> interference about as bug 1245473.
For myself I "fixed" this bug by switching to MATE DE on Ubuntu 16.04 LTS.
I hope to be there until 2021 year.
It is bad, that modern MATE versions have this interference problem (see bug 1720364).

I tried to start a discussion on Maillist ( https://lists.ubuntu.com/archives/ubuntu-devel-discuss/2017-October/017752.html ) about using MATE DE as default desktop on Ubuntu, but they want to stick with GNOME.

Switching to Wayland adds other interference - <Alt+Shift> as layout switcher opens Firefox menu (see bug 1712200).

It's time to test MATE DE on old-good and stable Xorg.

Revision history for this message
Sirocco (siroccco) wrote :

4 years and 8 distributions later this bug is affected Ubuntu 17.10 too.

Revision history for this message
Igor Zubarev (igor.zubarev) wrote :

Confirm for Ubuntu 17.10

Revision history for this message
Vitaliy Romaka (romakav) wrote :

Confirm for Ubuntu 17.10, and 18.04 beta

Revision history for this message
Norbert (nrbrtx) wrote :
Revision history for this message
attila123 (vangel-attila) wrote :

Hi, I found a way to make the Alt + Shift keyboard switching working in Gnome 3 (tested with 3.28.2).
First examine this current setting:

dconf read /org/gnome/desktop/input-sources/xkb-options

(in my case it was empty)
Then set the appropriate options, e.g.:

dconf write /org/gnome/desktop/input-sources/xkb-options "['grp:alt_shift_toggle']"

Now I can switch the keyboard layouts with Alt + Shift. (Earlier I might deleted all the Alt + Shift + * keyboard shortcuts, I am not sure...
It is permanent, should work after logout + login and reboot.

To add the keyboard layouts, press Super key (default) and type/search for "Region & Language" and add them under "Input Sources".

Hope it will help many people! :)

(I was inspired by https://unix.stackexchange.com/questions/333368/gnome-3-22-disable-altshift-keyboard-layout-switching but it did the opposite thing.)

Revision history for this message
Vadim Nevorotin (malamut) wrote :

18.10, bug is still here! It's a very basic experience - Ubuntu with Gnome3 can't make even such simple basic things work! What can we say about other things, if user can't change keyboard layout in a proper way?

Revision history for this message
BlockSettle (blocksettle) wrote :

WORKAROUND on how to use keyboard Ctrl+Shift+/Alf+Shift+ shortcuts with Ctrl+Shift as layout switch.

Order of keys pressed for layout switching is important. So ['<Control>Shift_L'] implies Control pressed first and Shift pressed second. Inverse order won't work. You have to use ['<Shift>Control_L'] for inverse order.

On the other hand application shortcuts are order-independent, so you can use Ctrl+Shift+T or Shift+Ctrl+T in order to open new tab in Gnome Terminal. Once you're using Ctrl+Shift for layout switching it's still possible to use Shift+Ctrl+<whatever> for application shortcuts.

P.S.: Don't set switching keyboard layout with 'Ctrl+Shift' using XKB options. In this case you'll get order-independent layout switching, but all ways to invoke Ctrl+Shift+ shortcts will be broken.

P.P.S.: Take a note values of switch to next/previous input source are actually arrays(lists).
It's possible to set multiple key combinations i.e. I use: ['<Control>Shift_L', '<Shift>Shift_L'] and ['<Control>Shift_R', '<Shift>Shift_R'] respectively.

Revision history for this message
Eido Askayo (eido95) wrote :

Confirm that this issue still exists, used Gnome Teaks tool to workaround this issue.

Revision history for this message
gdp77 (gdp77) wrote :

Gnome-tweaks no longer possible to install (Ubuntu 19.10).

What a mess... I can't believe this is not fixed...

Revision history for this message
Kim Ismenos (kimismenos) wrote :

Issue still exists: Ubuntu 20.04. - Gnome 3.36.1

Revision history for this message
braykov (braykov) wrote : Re: [Bug 1218322] Re: Can't set keyboard layout change to alt+shift, ctrl+shift, etc.
Download full text (3.5 KiB)

And that is why KDE

On Thu, Apr 30, 2020, 12:31 Kim Ismenos <email address hidden> wrote:

> Issue still exists: Ubuntu 20.04. - Gnome 3.36.1
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1218322
>
> Title:
> Can't set keyboard layout change to alt+shift, ctrl+shift, etc.
>
> Status in GNOME Settings Daemon:
> Unknown
> Status in Ubuntu Flashback:
> New
> Status in Ubuntu GNOME:
> Fix Released
> Status in Ubuntu GNOME Flashback:
> New
> Status in gnome-control-center package in Ubuntu:
> Fix Released
> Status in gnome-settings-daemon package in Ubuntu:
> Triaged
> Status in gnome-control-center package in ALT Linux:
> Unknown
> Status in gnome-control-center package in Baltix:
> Confirmed
> Status in gnome-control-center package in Gentoo Linux:
> Unknown
> Status in gnome-control-center package in Mandriva:
> Unknown
>
> Bug description:
> [Impact]
>
> Can't set keyboard layout change to Ctrl+Shift, Caps Lock, Alt+Shift,
> etc. Shift, Caps Lock keys are just ignored in settings.
>
> [Test Case]
>
> - open gnome-control-center's text input settings
> - click on the "next layout key" entry
> - try entering a combination of two modifier keys such as Ctrl+Shift
> -> the UI should reflect the new keys
>
> - add at least two input sources through gnome-control-center's text
> entry
> settings
> - press and release Ctrl+Shift
> -> the current input source should change
>
> [Regression Potential]
>
> That UI was not working before, it should only be an improvement (some
> key combos are not working as expected, that's another issue and
> shouldn't be mixed with this one)
>
> The input switching shortcut might capture other non-modifier
> shortcuts, but users will need to consider this when choosing their
> switching shortcut anyways. For users this bug affects, this
> represents a working solution for a critical bug.
>
> --
>
> Test results for different keyboard layout change hotkeys may be
> viewed and added in the Google Docs table, created by Norbert
> (
> https://docs.google.com/spreadsheet/ccc?key=0Ao5e713Ig9g_dEJrX2NRYlpLWWVzSWxsVXU4ck9HYVE&usp=sharing
> ).
>
> You can use the tag keyboard-layout-switching-hotkeys to find related
> bugs.
>
> https://bugs.launchpad.net/ubuntu/+bugs?field.tag=keyboard-layout-switching-hotkeys
>
> For using layout switching hotkeys in Unity Greeter, see bug 1245137.
> For using layout switching hotkeys in GNOME lockscreen, see bug 1244548.
> For using layout switching hotkeys in GNOME FlashBack sessions, see bug
> 1687466 (at least <Alt+Shift>).
>
> --
>
> ProblemType: Bug
> DistroRelease: Ubuntu 13.10
> Package: indicator-keyboard 0.0.0+13.10.20130829.1-0ubuntu1
> ProcVersionSignature: Ubuntu 3.11.0-2.5-generic 3.11.0-rc5
> Uname: Linux 3.11.0-2-generic x86_64
> NonfreeKernelModules: nvidia
> ApportVersion: 2.12.1-0ubuntu2
> Architecture: amd64
> Date: Thu Aug 29 14:21:54 2013
> InstallationDate: Installed on 2013-07-31 (28 days ago)
> InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Alpha amd64
> (20130730)
> MarkFor...

Read more...

Revision history for this message
Taras (tiras-dude) wrote :

Kim,

First try this:

Install gnome-tweak-tool (should pull in gnome-tweaks)

Than in the gui:

Tweak tool >> Typing >> Modifiers of input sources switch >> Alt shift.

First time, I was able to bypass this bug by installing Unity desktop (planned on it anyway), and configuring the shortcut there. The settings are transferred to gnome shell settings.

how-to install unity has been detailed here:
https://linuxconfig.org/ubuntu-20-04-unity-desktop

In case you want to keep it:
https://discourse.ubuntu.com/t/testing-unity-session-in-focal-fossa-20-04/13692

And how to remove it:
https://www.makeuseof.com/tag/remove-unity-desktop-ubuntu/

But my guess is that in gnome shell it was disabled intentionally as it breaks other shortcuts:
https://askubuntu.com/questions/1075604/disabling-altshift-to-switch-keyboard-layouts-in-ubuntu-18-04
https://unix.stackexchange.com/questions/333368/gnome-3-22-disable-altshift-keyboard-layout-switching

There are also some suggestions for command line config, but I did not try this:
https://unix.stackexchange.com/questions/316998/how-to-change-keyboard-layout-in-gnome-3-from-command-line

Revision history for this message
Efthimios Chaskaris (echaskaris) wrote :

Issue appears on 20.04, fresh install

Norbert (nrbrtx)
tags: removed: artful saucy trusty
Revision history for this message
Vladimir (vovax) wrote :

What the fuck? Can't resolve problem from 2013? Have a fresh install ubuntu 22.04 and cant setup ctrl-alt-etc keyboard layout switch? Need to use tweaks, google, etc.... Ubuntu user friendly?

Revision history for this message
Yuri Gor (yuri-horus) wrote :

Fresh 22.04, at first gnome tweaks helped, but then I changed
Settings / Keyboard / Switch input source individually for each window
And now even gnome tweaks doesn't work anymore.
Changing back to "Use the same source for all windows" also doesn't help.

5 comments hidden view all 549 comments
Revision history for this message
In , Lav-7 (lav-7) wrote :

(Ответ для Nikolay Strelkov на комментарий #2)
> Спасибо, Юрий!
> Но сочетания Ctrl+Shift+C/V на русской раскладке в терминале и выделение
> текста по Ctrl+Shift+стрелки не работают если переключение поставлено на
> привычное Ctrl+Shift. Мне создать новый багрепорт здесь или писать сразу в
> апстрим?
Есть задача и патч, исправляющий поведение (делает переключение раскладки при _отжатии_ клавиш):
https://bugzilla.altlinux.org/34900
Также эта проблема не актуальна для wayland.

Changed in gnome-control-center (ALT Linux):
importance: Unknown → Medium
status: Unknown → Invalid
Displaying first 40 and last 40 comments. View all 549 comments or add a comment.