# terminal: Bind Alt\+F4 to Close Window in the terminal keymap \(\#53091\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 2b29d00e2c3dca421ea10655821375f8e4cbd785

Requested commit: 2b29d00e2c3dca421ea10655821375f8e4cbd785

Commit: 2b29d00e2c3dca421ea10655821375f8e4cbd785

Tree: 89b76ea7d3c1c61383d2498388dfb327c86dda50

Author: Saketh

Committer: GitHub

## Message

```
terminal: Bind Alt+F4 to Close Window in the terminal keymap (#53091)

Closes #52774

## Summary
- Bind Windows `Alt+F4` to `workspace::CloseWindow` in the `Terminal`
keymap context
- Add a regression test covering the built-in Windows terminal keymap
entry

## Why
When the integrated terminal is focused, `Alt+F4` should close the
window instead of falling through to terminal keystroke handling.
Handling this in the Windows `Terminal` keymap keeps the fix aligned
with the rest of the terminal shortcut overrides.

## Validation
- `cargo test -p settings
windows_terminal_keymap_closes_window_on_alt_f4`

Release Notes:

- Fixed Alt+F4 on Windows so Zed closes even when the integrated
terminal is focused.

---------

Co-authored-by: Jakub Konka <kubkon@jakubkonka.com>
```

## Parents

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

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