# terminal: Enable copy and paste in edit menu \(\#58111\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 86e195ba9a47818eb01e53bf120484a51da9745b

Requested commit: 86e195ba9a47818eb01e53bf120484a51da9745b

Commit: 86e195ba9a47818eb01e53bf120484a51da9745b

Tree: a377ee3e4c74c51dd60d12a74a17d72dbab40224

Author: liam

Committer: GitHub

## Message

```
terminal: Enable copy and paste in edit menu (#58111)

Resolves https://github.com/zed-industries/zed/issues/57999

This diff fixes the macOS Edit menu showing Copy and Paste as disabled
when a terminal is focused. Terminal shortcuts already worked because
keybindings dispatch `terminal::Copy` and `terminal::Paste`, but the app
menu validates `editor::Copy` and `editor::Paste`, which the terminal
view did not expose.

With this change, the terminal view handles the editor Copy and Paste
actions by delegating to the existing terminal copy and paste paths.
This keeps keyboard behavior unchanged while allowing menu validation
and menu dispatch to work correctly for focused terminals.

Release Notes:
- Fixed `Copy` and `Paste` being disabled in the macOS `Edit` menu when
a terminal is focused.

---------

Co-authored-by: dino <dinojoaocosta@gmail.com>
```

## Parents

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

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