# Add keystroke for menu item only when action is equal to binding · gitcafe/zed

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

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

Visibility: public

Requested revision: 22dd68fbfb3e5757119245ae2294df881ecbbe1d

Requested commit: 22dd68fbfb3e5757119245ae2294df881ecbbe1d

Commit: 22dd68fbfb3e5757119245ae2294df881ecbbe1d

Tree: 4e49a7798b024e181c963988d609cd3f8f73c075

Author: Antonio Scandurra

Committer: Antonio Scandurra

## Message

```
Add keystroke for menu item only when action is equal to binding

This fixes a bug where we would show `cmd-e` instead of `cmd-f` for
`Edit -> Find` because both bindings would have the `buffer_search::Deploy`
action and we were mistakenly selecting the former.

```

## Parents

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

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