# Improve default button focus in macOS dialogs \(\#56513\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 7ab0ce6e68fc9ef3dfbab3a9b7fd56090710b21c

Requested commit: 7ab0ce6e68fc9ef3dfbab3a9b7fd56090710b21c

Commit: 7ab0ce6e68fc9ef3dfbab3a9b7fd56090710b21c

Tree: 825403fee0f7735a8ece165c702c7cf27eaa4737

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Improve default button focus in macOS dialogs (#56513)

Follow-up of https://github.com/zed-industries/zed/pull/2433
Closes https://github.com/zed-industries/zed/issues/5990

Ensures ESC, Enter and Space buttons are mapped to different buttons on
modals.

Before:

<img width="1728" height="1084" alt="image"
src="https://github.com/user-attachments/assets/7ff63ebf-9396-42a4-9159-e524f974fe2c"
/>


After:

<img width="1728" height="1084" alt="image"
src="https://github.com/user-attachments/assets/634434e7-d907-496b-80c5-b02a69844d63"
/>


Release Notes:

- Improved default button focus in macOS dialogs
```

## Parents

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

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