Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows keybinding with REST extension #18712

Closed
a8775 opened this issue Jan 18, 2017 · 1 comment
Closed

Windows keybinding with REST extension #18712

a8775 opened this issue Jan 18, 2017 · 1 comment
Assignees
Labels
*question Issue represents a question, should be posted to StackOverflow (VS Code)
Milestone

Comments

@a8775
Copy link

a8775 commented Jan 18, 2017

  • VSCode Version: 1.9.0-insider (Date 2017-01-18)
  • OS Version: Windows 10

Steps to Reproduce:

  1. Install REST extension
  2. Keybinding is: { "key": "ctrl+alt+e", "command": "rest-client.switch-environment" },

The problem:
When I press: AltGr+e the command is executed.

Normally I should get special letter that is bonded with national keyboard mapping in Windows.

The issue has possibly two aspects:

  1. The command for REST extension should not be executed as it's ctrl+alt+e not alt-e
  2. The key binding AltGr+ is not differentiated from Alt+ - i believe this is related to issue: Move keybinding dispatching off e.keyCode #17521
@alexdima
Copy link
Member

To find out what a keybinding does:

  1. Open Preferences > Keyboard Shortcuts
  2. Click on Define Keybinding
  3. Press your desired key combination
    (e.g. doing it for Ctrl+Shift+1):
    image
  4. Take note of the string shown inside the textbox (highlighted in purple above)
  5. Search for that string in the default keybindings and you shall find what it is bound to.

To remove a keybinding:

  1. Identify the keybinding you would like to remove (e.g:)
{ "key": "ctrl+shift+1",          "command": "editor.action.replaceOne",
                                     "when": "editorFocus && findWidgetVisible" },

2.a. Completely free up the keybinding. This will remove all the commands bound to "ctrl+shift+1". Write the following rule:

{ "key": "ctrl+shift+1" }

2.b. Completely remove a command. This will remove all keybindings associated with "editor.action.replaceOne". Write the following rule:

{ "command": "-editor.action.replaceOne" }

2.c. Remove that specific keybinding. Write the following rule:

{ "key": "ctrl+shift+1", "command": "-editor.action.replaceOne" },

Tip: Remember, in VS Code you can modify each and every keybinding to your liking, you are the sole master of your keyboard.

@alexdima alexdima added the *question Issue represents a question, should be posted to StackOverflow (VS Code) label Jan 21, 2017
@alexdima alexdima added this to the Backlog milestone Jan 21, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*question Issue represents a question, should be posted to StackOverflow (VS Code)
Projects
None yet
Development

No branches or pull requests

2 participants