# gpui_web: Preserve iOS keyboard edits and browser window activity \(\#64882\) · gitcafe/zed

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

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

Visibility: public

Requested revision: e773a56d6cf08ad83b1b9a7bef3c059c5bf26cb1

Requested commit: e773a56d6cf08ad83b1b9a7bef3c059c5bf26cb1

Commit: e773a56d6cf08ad83b1b9a7bef3c059c5bf26cb1

Tree: 047e9249c7014ce14fb9861f83b1fe7fbb8eb954

Author: Gaauwe Rombouts

Committer: GitHub

## Message

```
gpui_web: Preserve iOS keyboard edits and browser window activity (#64882)

Touch keyboard keydown handling inserted ordinary text directly and
canceled the browser edit. On iOS this prevented the hidden textarea
from maintaining its autocorrect context. Let unmodified editing keys
reach the browser's input path while keeping modified shortcuts in GPUI.

The hidden textarea's focus and blur were also treated as window
activity. Dismissing the keyboard could mark a visible page inactive and
throttle its frames. Derive activity from browser-window focus and
document visibility instead, including after an IME focus cycle. Avoid
canceling touchend when the browser marks it noncancelable during
scrolling.

Release Notes:
- N/A
- [GPUI] N/A
```

## Parents

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

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