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

Changing default keybind for toggleWordWrap still uses default bind #42038

Closed
grzegorzjudas opened this issue Jan 23, 2018 · 5 comments
Closed
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) keybindings VS Code keybinding issues

Comments

@grzegorzjudas
Copy link

grzegorzjudas commented Jan 23, 2018

  • VSCode Version: 1.19.2
  • OS Version: OSX Sierra

Steps to Reproduce:

  1. Open keybindings.json
  2. Add following to the array:
    {
        "key": "cmd+l", // lowercase L
        "command": "editor.action.toggleWordWrap"
    }
  1. Open a new document
  2. Enter a long text without spaces so it's longer than the screen width
  3. Press default toggleWordWrap keybind (alt+z)
  4. Press modified keybind (cmd+l)

Expected:
Only cmd+l changes the line wrapping

Actual:
Both keybinds still change the word wrapping

This is critical for me, as alt+z is, using Polish system keyboard layout, a character "ż" (all other special characters for the language work, and it also work fine for other programs and system).

Does this issue occur when all extensions are disabled?: Yes

@vscodebot vscodebot bot added editor editor-contrib Editor collection of extras labels Jan 23, 2018
@usernamehw
Copy link
Contributor

@grzegorzjudas
Copy link
Author

Thanks!

It did indeed work. That being said, the default should still be overridden by custom rule, no? Not use both at the same time.

@usernamehw
Copy link
Contributor

It just works this way ¯\_(ツ)_/¯

@grzegorzjudas
Copy link
Author

Anyways, I think having to write custom rules/disabling default rules for Polish system with Polish keyboard layout in order to write Polish characters, which work just fine for other programs is something to at least think about...

@alexdima
Copy link
Member

@grzegorzjudas Sorry about that, I guess you are trying to produce ź (option - z). We have tried quite hard to find keybindings that are useful for the majority of users, but at one point we ran out of cmd+ keybindings.

We currently ship with a single default set of keybindings, which is not optimized per keyboard layout. We have some heuristics to bind to the current keyboard layout, but they are all runtime heuristics and not something designed by a human. This is something you can upvote in #1240

The good news is that you can remove it; an easier gesture is to press the edit button next to the command in the Keybindings Editor (cmd+k cmd+s) which will remove the keybinding for you in keybindings.json.

@alexdima alexdima added keybindings VS Code keybinding issues *duplicate Issue identified as a duplicate of another issue(s) and removed editor editor-contrib Editor collection of extras labels Jan 26, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Mar 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) keybindings VS Code keybinding issues
Projects
None yet
Development

No branches or pull requests

3 participants