# gpui: Support Force Touch go-to-definition on macOS \(\#40399\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 07bf685feee40cc541b2764300815a600356188c

Requested commit: 07bf685feee40cc541b2764300815a600356188c

Commit: 07bf685feee40cc541b2764300815a600356188c

Tree: a9471510345c8fda103e0980020a9a30da0408cd

Author: Aaro Luomanen

Committer: GitHub

## Message

```
gpui: Support Force Touch go-to-definition on macOS (#40399)

Closes #4644

Release Notes:

- Adds `MousePressureEvent`, an event that is sent anytime the touchpad
pressure changes, into `gpui`. MacOS only.
- Triggers go-to-defintion on force clicks in the editor.

This is my first contribution, let me know if I've missed something
here.

---------

Co-authored-by: Anthony Eid <anthony@zed.dev>
Co-authored-by: Antonio Scandurra <me@as-cii.com>
```

## Parents

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

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