# Fix copy shortcut in macOS notebook cells \(\#59431\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ea673ff23313f8fb752be8554965d77f2ccdf16a

Requested commit: ea673ff23313f8fb752be8554965d77f2ccdf16a

Commit: ea673ff23313f8fb752be8554965d77f2ccdf16a

Tree: a87107315cef3773c095f59c9e8ca7ba185c5842

Author: AA

Committer: GitHub

## Message

```
Fix copy shortcut in macOS notebook cells (#59431)

Fix `cmd-c` not copying text inside macOS notebook cell editors.

Previously, the macOS notebook keymap bound `cmd-c` to
`notebook::InterruptKernel` in notebook contexts, including
`NotebookEditor > Editor`. This shadowed the normal editor copy shortcut
while editing notebook cells.


## Solution

Move the macOS notebook interrupt shortcut from `cmd-c` to `ctrl-c`.

This keeps the notebook interrupt shortcut available while allowing the
normal editor keybindings to handle:

- `cmd-c` for copy
- `cmd-x` for cut
- `cmd-v` for paste

inside notebook cell editors.
- This change is macOS-specific.

Release Notes:

- N/A

---------

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

## Parents

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

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