# Fix cmd\+k in terminal and fix sporadic keybind misses \(\#7388\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 583ce443592ac2bd2f92001a795c64bfefe53f54

Requested commit: 583ce443592ac2bd2f92001a795c64bfefe53f54

Commit: 583ce443592ac2bd2f92001a795c64bfefe53f54

Tree: 9078833de4a7552970d02e0c2022ccf819ba360d

Author: Thorsten Ball

Committer: GitHub

## Message

```
Fix cmd+k in terminal and fix sporadic keybind misses (#7388)

This fixes `cmd+k` in the terminal taking 1s to have an effect. It is
now immediate.

It also fixes #7270 by ensuring that we don't set a bad state when
matching keybindings.

It matches keybindings per context and if it finds a match on a lower
context it doesn't keep pending keystrokes. If it finds two matches on
the same context level, requiring more keystrokes, then it waits.



Release Notes:

- Fixed `cmd-k` in terminal taking 1s to have an effect. Also fixed
sporadic non-matching of keybindings if there are overlapping
keybindings.
([#7270](https://github.com/zed-industries/zed/issues/7270)).

---------

Co-authored-by: Conrad <conrad@zed.dev>
Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
```

## Parents

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

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