# Fix jetbrains keymap alt-enter to do \`search::SelectAllMatches\` \(\#11951\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b0d89d6f34382113f59353dfaffb4fd1aae37126

Requested commit: b0d89d6f34382113f59353dfaffb4fd1aae37126

Commit: b0d89d6f34382113f59353dfaffb4fd1aae37126

Tree: ad07e50c6371c08b419f573e642395a6a28aadb0

Author: Congyu

Committer: GitHub

## Message

```
Fix jetbrains keymap alt-enter to do `search::SelectAllMatches` (#11951)

The default keymap uses alt-enter for `SelectAllMatches` for `context:
BufferSearchBar`.

Jetbrains keymap uses alt-enter for `ToggleCodeActions` for `context:
Editor`.

When focusing on search bar, currently alt-enter does not perform
`SelectAllMatches`, whereas `ToggleCodeActions` is triggered instead,
because search bar's text input element has `context: Editor
mode=single_line`.

This PR restricts `ToggleCodeActions` to `Editor (full mode)` context to
allow `SelectAllMatches` to be triggered for alt-enter when the search
bar is active.

Release Notes:

- Fixed alt-enter with JetBrains keymap ignoring `search::SelectAllMatches` in certain contexts ([11840](https://github.com/zed-industries/zed/issues/11840))
```

## Parents

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

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