# Properly handle backspace when in dead key state \(\#7494\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 04e1641a29d148a945e7d93682ca89ca28d95a60

Requested commit: 04e1641a29d148a945e7d93682ca89ca28d95a60

Commit: 04e1641a29d148a945e7d93682ca89ca28d95a60

Tree: eb84c178f184bd2221d658d52b99d8e59adf70e1

Author: Thorsten Ball

Committer: GitHub

## Message

```
Properly handle backspace when in dead key state (#7494)

Previously we wouldn't handle Backspace in dead key state correctly:
instead of removing what was typed, we'd insert the text that was in the
dead key state.

Example: on a US English layout, press `opt-u` to end up in a dead key
state with `¨` waiting for the next character to be typed. Type
`backspace`. The `¨` should be removed, but it's not.

With this change, the `backspace` is interpreted instead of being
ignored.

Release Notes:

- Fixed backspace not working for dead keys (i.e. when typing accents or
umlauts)

---------

Co-authored-by: Antonio <antonio@zed.dev>
Co-authored-by: Conrad <conrad@zed.dev>
```

## Parents

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

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