# Hide the mouse when the user is typing in the editor \- take 2 \(\#27519\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 77856bf01758a0e51a52f65690f87f78b2ead290

Requested commit: 77856bf01758a0e51a52f65690f87f78b2ead290

Commit: 77856bf01758a0e51a52f65690f87f78b2ead290

Tree: 3a822ab38ce06de7c2648a52e9ed360e13a1cd40

Author: Smit Barmase

Committer: GitHub

## Message

```
Hide the mouse when the user is typing in the editor - take 2 (#27519)

Closes #4461

Take 2 on https://github.com/zed-industries/zed/pull/25040. 

Fixes panic caused due to using `setHiddenUntilMouseMoves` return type
to `set` cursor on macOS.

Release Notes:

- Now cursor hides when the user is typing in editor. It will stay
hidden until it is moved again. This behavior is `true` by default, and
can be configured with `hide_mouse_while_typing` in settings.

---------

Co-authored-by: Peter Tripp <peter@zed.dev>
Co-authored-by: Thomas Mickley-Doyle <thomas@zed.dev>
Co-authored-by: Agus <agus@zed.dev>
Co-authored-by: Kirill Bulatov <kirill@zed.dev>
Co-authored-by: Agus Zubiaga <hi@aguz.me>
Co-authored-by: Angelk90 <angelo.k90@hotmail.it>
```

## Parents

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

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