# Add MutableAppContext::keystrokes_for_action · gitcafe/zed

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

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

Visibility: public

Requested revision: 5b7825d5de0e4e517daa63e6db26b6b62dc20058

Requested commit: 5b7825d5de0e4e517daa63e6db26b6b62dc20058

Commit: 5b7825d5de0e4e517daa63e6db26b6b62dc20058

Tree: 2dc2318364e320866bb4a5cb005c11e342d1992a

Author: Nathan Sobo

Committer: Antonio Scandurra

## Message

```
Add MutableAppContext::keystrokes_for_action

This can be used to lookup keystrokes that will dispatch an action based on the currently focused view. There might be multiple, but we return the first found, meaning the most recently added bindings matching that action for the closest view to the focused view in the hierarchy.

```

## Parents

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

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