# Ensure querying keystrokes or actions is safe · gitcafe/zed

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

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

Visibility: public

Requested revision: 92183e0d729519431151c04e0fa5deadcfb5a6f1

Requested commit: 92183e0d729519431151c04e0fa5deadcfb5a6f1

Commit: 92183e0d729519431151c04e0fa5deadcfb5a6f1

Tree: 0bc0a8f442626c48697a02a7349f8e52c6426d81

Author: Antonio Scandurra

Committer: Antonio Scandurra

## Message

```
Ensure querying keystrokes or actions is safe

This is achieved by moving `available_actions` into `AsyncAppContext` (where
we know no view/window is on the stack) and `keystrokes_for_action` into `LayoutContext`
where we'll fetch the previous frame's ancestors and notify the current view if those
change after we perform a layout.

```

## Parents

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

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