# Fix issue with \`cmd-w\` closing window in preview tabs on MacOS \(\#25878\) · gitcafe/zed

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

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

Visibility: public

Requested revision: fec228bb236e690c4c629e4688b62c005298c503

Requested commit: fec228bb236e690c4c629e4688b62c005298c503

Commit: fec228bb236e690c4c629e4688b62c005298c503

Tree: 6dcc98878dd2bfc7534d09a754c0f7a7525166b0

Author: Ben Kunkle

Committer: GitHub

## Message

```
Fix issue with `cmd-w` closing window in preview tabs on MacOS (#25878)

Closes #25810

Reorders default macOS keymap so that `cmd-w` in `"context":
"PromptLibrary"` bindings is not the last binding for
`workspace::CloseWindow` and therefore does not get rendered in the app
menu or intercepted by MacOS

Release Notes:

- N/A
```

## Parents

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

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