# gpui: Apply cfg at compile time \(\#31428\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 2e62f161494c479e8520f38e7775583ddb6d6f7f

Requested commit: 2e62f161494c479e8520f38e7775583ddb6d6f7f

Commit: 2e62f161494c479e8520f38e7775583ddb6d6f7f

Tree: 27464d54808eef02e5ac9e024b5cbc47088fcd58

Author: tidely

Committer: GitHub

## Message

```
gpui: Apply cfg at compile time (#31428)

- Use compile time `cfg` macro instead of a runtime check
- Use `Modifiers` instead of a bunch of `bool` when parsing a
`Keystroke`.

Release Notes:

- N/A
```

## Parents

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

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