# gpui_web: Drive IME mirror focus state from GPUI \(\#63629\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 9decdcc1f22d324b5d5b186a3da1418ec0ea4c37

Requested commit: 9decdcc1f22d324b5d5b186a3da1418ec0ea4c37

Commit: 9decdcc1f22d324b5d5b186a3da1418ec0ea4c37

Tree: f24ddfa75ea98f1c36415c2ad01714c3cb3c3816

Author: Cameron Mcloughlin

Committer: GitHub

## Message

```
gpui_web: Drive IME mirror focus state from GPUI (#63629)

Previously, we manually synchronized the keyboard state in response to
tap events, but this meant that several common cases were unreliable.

Now, we use GPUI's focused element as the source of truth, and use
`sync_virtual_keyboard` in cases where they have gotten out of sync
(i.e. a user manually dismisses a keyboard while the input is still
focused).

---

Release Notes:

- N/A or Added/Fixed/Improved ...
```

## Parents

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

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