# ui: Make hitting enter also open the context menu submenu \(\#46032\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 4e7cf03c5efdd314d3bed38923c0ac21f2e39f17

Requested commit: 4e7cf03c5efdd314d3bed38923c0ac21f2e39f17

Commit: 4e7cf03c5efdd314d3bed38923c0ac21f2e39f17

Tree: e86827e35d61b9478cbc18c8d40b6443bfc1cf21

Author: Danilo Leal

Committer: GitHub

## Message

```
ui: Make hitting enter also open the context menu submenu (#46032)

This PR makes hitting `enter`/`return` in a submenu trigger also open
and focus the submenu instead of closing the parent menu. Building on
feedback from @SomeoneToIgnore:
https://github.com/zed-industries/zed/pull/45882#issuecomment-3708275031.

Release Notes:

- N/A
```

## Parents

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

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