Skip to content

How can I bind Ctrl-Tab and Ctrl-Shift-Tab? #1941

Answered by iflowerml
iflowerml asked this question in Q&A
Discussion options

You must be logged in to vote

Terminals do not recognize Ctrl-Tab as a keyboard sequence. In fact, they do not differentiate Tab from Ctrl-Tab (by default, they only send Tab). Hence, an extended keyboard sequence was introduced and implemented in many Terminals and CLI applications.

Here is how to do that in Blink, but these instructions are easy to extrapolate to other terminals as well:

  1. Go to Settings>Keyboard.
  2. Click on "Custom Presses" at the bottom > Click on "Add shortcut".
  3. Click Ctrl-Tab simultaneously.
  4. In “Action” select “Custom String”.
  5. Return to the previous page and now underneath “Send Input”, in “Custom String” enter the sequence: \x1b[27;5;9~.
  6. For Ctrl-Shift-Tab, start a new custom and use the sequence:

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by carloscabanero
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant