# Find keystrokes defined on a child but handled by a parent · gitcafe/zed

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

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

Visibility: public

Requested revision: ddc8a126da3369b59414727307d0e635bdb4b3f8

Requested commit: ddc8a126da3369b59414727307d0e635bdb4b3f8

Commit: ddc8a126da3369b59414727307d0e635bdb4b3f8

Tree: fbd8efe90c50204272bdf640fdb106e5f325698e

Author: Antonio Scandurra

Committer: Antonio Scandurra

## Message

```
Find keystrokes defined on a child but handled by a parent

This fixes a bug that was preventing keystrokes from being shown on tooltips
for the "Buffer Search" and "Inline Assist" buttons in the toolbar.

This commit makes the behavior of `keystrokes_for_action` more consistent with
the behavior of `available_actions`. It seems reasonable that, if a child view
defines a keystroke for an action and that action is handled on a parent, we
should show the child's keystroke.

```

## Parents

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

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