Keymap configuration cannot be recognized #8441

Closed
opened 2026-01-31 01:29:34 +00:00 by claunia · 4 comments
Owner

Originally created by @skywind3000 on GitHub (May 21, 2020).

Environment

PS C:\Users\Linwei> [Environment]::OSVersion

Platform ServicePack Version      VersionString
-------- ----------- -------      -------------
 Win32NT             10.0.18363.0 Microsoft Windows NT 10.0.18363.0

Steps to reproduce

Edit config file and restart windows terminal:

  "keybindings": [
    {
      "command": "switchToTab0",
      "keys": [ "ctrl+1" ]
    },
    {
      "command": "switchToTab1",
      "keys": [ "ctrl+2" ]
    },
    {
      "command": "switchToTab2",
      "keys": [ "ctrl+3" ]
    },
    {
      "command": "switchToTab3",
      "keys": [ "ctrl+4" ]
    },
    {
      "command": "switchToTab4",
      "keys": [ "ctrl+5" ]
    },
    {
      "command": "switchToTab5",
      "keys": [ "ctrl+6" ]
    },
    {
      "command": "switchToTab6",
      "keys": [ "ctrl+7" ]
    },
    {
      "command": "switchToTab7",
      "keys": [ "ctrl+8" ]
    },
    {
      "command": "switchToTab8",
      "keys": [ "ctrl+9" ]
    },
    {
      "command": "switchToTab9",
      "keys": [ "ctrl+0" ]
    }

  ]

Expected behavior

I am expecting to switch tabs with CTRL+Number.

Actual behavior

Nothing happened at all when you press CTRL+1/2/3

Originally created by @skywind3000 on GitHub (May 21, 2020). # Environment ```none PS C:\Users\Linwei> [Environment]::OSVersion Platform ServicePack Version VersionString -------- ----------- ------- ------------- Win32NT 10.0.18363.0 Microsoft Windows NT 10.0.18363.0 ``` # Steps to reproduce Edit config file and restart windows terminal: ```json "keybindings": [ { "command": "switchToTab0", "keys": [ "ctrl+1" ] }, { "command": "switchToTab1", "keys": [ "ctrl+2" ] }, { "command": "switchToTab2", "keys": [ "ctrl+3" ] }, { "command": "switchToTab3", "keys": [ "ctrl+4" ] }, { "command": "switchToTab4", "keys": [ "ctrl+5" ] }, { "command": "switchToTab5", "keys": [ "ctrl+6" ] }, { "command": "switchToTab6", "keys": [ "ctrl+7" ] }, { "command": "switchToTab7", "keys": [ "ctrl+8" ] }, { "command": "switchToTab8", "keys": [ "ctrl+9" ] }, { "command": "switchToTab9", "keys": [ "ctrl+0" ] } ] ``` # Expected behavior I am expecting to switch tabs with `CTRL`+`Number`. # Actual behavior <!-- What's actually happening? --> Nothing happened at all when you press `CTRL`+`1`/`2`/`3`
claunia added the Issue-QuestionNeeds-Tag-FixResolution-Answered labels 2026-01-31 01:29:34 +00:00
Author
Owner

@DHowett commented on GitHub (May 21, 2020):

This is covered at the top of #5458.

@DHowett commented on GitHub (May 21, 2020): This is covered at the top of #5458.
Author
Owner

@DHowett commented on GitHub (May 21, 2020):

(I just realized it may not be at the top. Those settings, switchToTabXXX, have been replaced with a single switchToTab setting. Look at the defaults file for more info.)

@DHowett commented on GitHub (May 21, 2020): (I just realized it may not be at the top. Those settings, switchToTabXXX, have been replaced with a single switchToTab setting. Look at the defaults file for more info.)
Author
Owner

@skywind3000 commented on GitHub (May 21, 2020):

Is there a way to restore the default config ??

@skywind3000 commented on GitHub (May 21, 2020): Is there a way to restore the default config ??
Author
Owner

@DHowett commented on GitHub (May 21, 2020):

Yes, delete those key bindings from your settings file.

@DHowett commented on GitHub (May 21, 2020): Yes, delete those key bindings from your settings file.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#8441