4

I'm using Ubuntu 18.04 and have used GNOME Tweaks(1) to restore normal keyboard layout switching behavior where pressing Alt+Shift cycles between enabled layouts. I've also used Gnome Settings(2) in an attempt to restore normal windows switching where Alt+Tab brings up a list of windows and moves the selected window from the most recently-used window to the least, and Shift+Alt+Tab moves the cursor in the opposite direction.

Keyboard layout works well. Window switching does not: Alt+Tab behaves as expected but Shift+Alt+Tab does not because it changes the keyboard layout rather than traverse the window list.

How can I restore normal Shift+Alt+Tab functionality when using multiple layouts? I know it's possible because I've read a blog post on how to do it once, however I was unable to find said blog post again.


Edit: Found it! See: https://www.guyrutenberg.com/2015/10/02/gnome-altshift-and-altshifttab/

Edit2: I believe this is not a duplicate of OS keyboard shortcuts conflict with apps keyboard shortcuts in GNOME 3 because it's specific to Shift+Alt and that specificity seems to have allowed for an acceptable workaround. See my answer below.


Notes:

  1. The setting is under Tweaks > Keyboard & Mouse > Additional Layout Options.
  2. Normal Keyboard Shortcut reassignment.
pomsky
  • 70,557

2 Answers2

4

There seems to be a workaround that allows you to keep using both shortcuts normally:

  • Alt+Tab and Shift+Alt+Tab both work.
  • Alt+Shift cycles between layouts normally.

The only caveat is that reversing window traversal with Shift+Alt+Tab will also change the layout once. This is an acceptable compromise in my case.

The way this is done is to:

  1. Open gnome tweaks tool
  2. Go to Keyboard & Mouse
  3. Click on "Additional Layout Options"
  4. Expand "Miscellaneous Compatibility Options"
  5. Check "Shift cancels Caps Lock"

I want to mimic PRATAP's helpful answer by posting the steps in pictures:

  1. step-1:
    step-1
  2. step-2:
    step-2
  3. step-3:
    step-3
pomsky
  • 70,557
1

as a workaround,
Left Alt+Left Shift for "Switching to another Layout"

now, pressing Left Alt+ Right Shift+ TAB solved it.

enter image description here

enter image description here