# Centralize logic around which keybind to display \(\#25215\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b84aec0fae717ecfc7ae0fc6a406f4df316a0520

Requested commit: b84aec0fae717ecfc7ae0fc6a406f4df316a0520

Commit: b84aec0fae717ecfc7ae0fc6a406f4df316a0520

Tree: aaf7b36356e360a2e00a2c227d5c29d18d25bbe0

Author: Ben Kunkle

Committer: GitHub

## Message

```
Centralize logic around which keybind to display (#25215)

Closes #24931

We've flipped back and forth at least once on whether the last or first
added keybinding should be shown in different contexts (See
[this](https://github.com/zed-industries/zed/issues/23621#issuecomment-2614061385)
as well as #23621 and the subsequent #23660)

This PR attempts to pick a side to stick with so that we are at least
consistent until #23660 is resolved and we have a way to determine which
keybinds to display in a manner that is both consistent and not
confusing

Release Notes:

- N/A
```

## Parents

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

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