# linux: Fix \`ctrl-0\.\.9\`, \`ctrl\-\[\`, \`ctrl\-^\` \(\#35028\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 0af690080bc4353d71d1039374e5cbbfce656718

Requested commit: 0af690080bc4353d71d1039374e5cbbfce656718

Commit: 0af690080bc4353d71d1039374e5cbbfce656718

Tree: 5b874d8105025df02b07b832d5468e9dccf64d95

Author: Oleksiy Syvokon

Committer: GitHub

## Message

```
linux: Fix `ctrl-0..9`, `ctrl-[`, `ctrl-^` (#35028)

There were two different underlying reasons for the issues with
ctrl-number and ctrl-punctuation:

1. Some keys in the ctrl-0..9 range send codes in the `\1b`..`\1f`
range. For example, `ctrl-2` sends keycode for `ctrl-[` (0x1b), but we
want to map it to `2`, not to `[`.

2. `ctrl-[` and four other ctrl-punctuation were incorrectly mapped,
since the expected conversion is by adding 0x40

Closes #35012

Release Notes:

- N/A
```

## Parents

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

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