# which_key: Improve pending keystrokes indicator to include untimed chords \(\#64362\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 534319bd0581672584e0433d376902e2d06b3559

Requested commit: 534319bd0581672584e0433d376902e2d06b3559

Commit: 534319bd0581672584e0433d376902e2d06b3559

Tree: c968bcd70619963128e9d06aecdb9fd85fd323d5

Author: Smit Barmase

Committer: GitHub

## Message

```
which_key: Improve pending keystrokes indicator to include untimed chords (#64362)

Closes #64338

The pending keystrokes indicator now shows chords without a timeout,
with no countdown circle. For example, pressing `cmd-k` shows that Zed
is waiting for another key.

Few cases which needed special handling for untimed chords case:

- Hovering already pauses a timed chord, and GPUI preserves that pause
when the chord advances. An untimed chord has no paused timeout to carry
forward. We pause its newly created timeout if the pointer is still over
the indicator or popover.
- For timed chords, the timeout already stays paused during the
popover's 300 ms dismissal delay. If an untimed chord gains a timeout
during that delay, it now follows the same rule. The popover still
closes at the original deadline, then the timeout resumes with a full
second remaining.

<img width="308" height="182" alt="CleanShot 2026-09-17 at 11 45 33
AM@2x"
src="https://github.com/user-attachments/assets/9baa5fde-de9b-447d-9b02-b712a3065685"
/>

Release Notes:

- Improved the pending keystrokes indicator to show chords without a
timeout, such as shortcuts starting with `cmd-k`.
```

## Parents

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

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