Change shortcut to switch tab in gnome-terminal

I found similar questions but none addresses the problem:

In gnome-terminal, I would like to change my shortcut to change tabs:

  • Switch to Previous Tab: Ctrl+Shift+Tab
  • Switch to Next Tab: Ctrl+Tab

Just like in every browser. However, if I try to set these options, gnome-terminal just returns an error sounds and it doesn't work. It seems like the tab key is messing things up, because every assignment that does not involve the tab key works fine.

Does anyone have a solution?


Solution 1:

Apparently, the Preferences dialog does not allow you to set these keybindings indeed. However, it will work if you directly change the setting using the terminal, as in:

gsettings set org.gnome.Terminal.Legacy.Keybindings:/org/gnome/terminal/legacy/keybindings/ next-tab '<Control>Tab'
gsettings set org.gnome.Terminal.Legacy.Keybindings:/org/gnome/terminal/legacy/keybindings/ prev-tab '<Control><Shift>Tab'