# editor: Fix certain unwanted pre-emptive keys been shown in buffer \(\#32528\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 6d9bcdb2af603e1a3eee2531b1721550322d8f8d

Requested commit: 6d9bcdb2af603e1a3eee2531b1721550322d8f8d

Commit: 6d9bcdb2af603e1a3eee2531b1721550322d8f8d

Tree: 4e75c1e6a38616bc307327c947670f55811fd218

Author: Smit Barmase

Committer: GitHub

## Message

```
editor: Fix certain unwanted pre-emptive keys been shown in buffer (#32528)

Closes #32456

https://github.com/zed-industries/zed/pull/32007 added showing
pre-emptive keys for multi-key bindings. But for certain keys like
"control", "backspace", "escape", "shift", "f1", etc., shouldn't be
shown as these keys would not end up in buffer after pending input
delay. This PR changes it to use just `key_char`, as it represents
actual text that will end up in buffer and is `None` for all mentioned
keys.


https://github.com/zed-industries/zed/blob/fad4c17c97927626792228bfbf92494b4cd35c40/crates/gpui/src/platform/keystroke.rs#L14-L21

cc @ConradIrwin 

Release Notes:

- Fixed issue where triggering multi-key binding like "shift",
"control", etc. would write them to the buffer for a short time.
```

## Parents

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

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