# keymap: Fix subword navigation and selection on Sublime Text keymap \(\#31840\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/58a400b1eec67405c2f0521585a9ab4c277b6ee8)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 58a400b1eec67405c2f0521585a9ab4c277b6ee8

Requested commit: 58a400b1eec67405c2f0521585a9ab4c277b6ee8

Commit: 58a400b1eec67405c2f0521585a9ab4c277b6ee8

Tree: ce3f544b6b4a50567a0ef46721b98870bcf5f473

Author: Fernando Carletti

Committer: GitHub

## Message

````
keymap: Fix subword navigation and selection on Sublime Text keymap (#31840)

On Linux, the correct modifier key for this action is `alt`, not `ctrl`.
I mistakenly set it to `ctrl` on #30268.

From Sublime's keymap: 
```json
{ "keys": ["ctrl+left"], "command": "move", "args": {"by": "words", "forward": false} },
{ "keys": ["ctrl+right"], "command": "move", "args": {"by": "word_ends", "forward": true} },
{ "keys": ["ctrl+shift+left"], "command": "move", "args": {"by": "words", "forward": false, "extend": true} },
{ "keys": ["ctrl+shift+right"], "command": "move", "args": {"by": "word_ends", "forward": true, "extend": true} },

{ "keys": ["alt+left"], "command": "move", "args": {"by": "subwords", "forward": false} },
{ "keys": ["alt+right"], "command": "move", "args": {"by": "subword_ends", "forward": true} },
{ "keys": ["alt+shift+left"], "command": "move", "args": {"by": "subwords", "forward": false, "extend": true} },
{ "keys": ["alt+shift+right"], "command": "move", "args": {"by": "subword_ends", "forward": true, "extend": true} },
```

Release Notes:

- N/A
````

## Parents

- [8ab7d44d514e904df743dfe50be7bba725dc67ae](https://git.cafe/gitcafe/zed/commit/8ab7d44d514e904df743dfe50be7bba725dc67ae?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/58a400b1eec67405c2f0521585a9ab4c277b6ee8?format=markdown)
