# Action release handlers \(\#8782\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 5602c481361a09f1b68e8bce66a9ce6dcf0834e7

Requested commit: 5602c481361a09f1b68e8bce66a9ce6dcf0834e7

Commit: 5602c481361a09f1b68e8bce66a9ce6dcf0834e7

Tree: 1bbceda3ab60be4e9e2ac9e2083ee5350b7a0ebf

Author: Andrew Lygin

Committer: GitHub

## Message

```
Action release handlers (#8782)

This PR adds support for handling action releases &mdash; events that
are fired when the user releases all the modifier keys that were part of
an action-triggering shortcut.

If the user holds modifiers and invokes several actions sequentially via
shortcuts (same or different), only the last action is "released" when
its modifier keys released.

~The following methods were added to `Div`:~
- ~`capture_action_release()`~
- ~`on_action_release()`~
- ~`on_boxed_action_release()`~

~They work similarly to `capture_action()`, `on_action()` and
`on_boxed_action()`.~

See the implementation details in [this
comment](https://github.com/zed-industries/zed/pull/8782#issuecomment-2009154646).

Release Notes:

- Added a fast-switch mode to the file finder: hit `p` or `shift-p`
while holding down `cmd` to select a file immediately. (#8258).

Related Issues:

- Implements #8757 
- Implements #8258
- Part of #7653 

Co-authored-by: @ConradIrwin
```

## Parents

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

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