# Disable the IME on linux/wayland when text input is unexpected \(\#58237\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 126c0ee41a380b9e0ce42380764a3dec08a1cc85

Requested commit: 126c0ee41a380b9e0ce42380764a3dec08a1cc85

Commit: 126c0ee41a380b9e0ce42380764a3dec08a1cc85

Tree: d261dd9e1f4f0e962556a0f5408cc5e2addbea95

Author: feeiyu

Committer: GitHub

## Message

```
Disable the IME on linux/wayland when text input is unexpected (#58237)

Self-Review Checklist:

- [X] I've reviewed my own diff for quality, security, and reliability
- [ ] Unsafe blocks (if any) have justifying comments
- [ ] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [ ] Tests cover the new/changed behavior
- [ ] Performance impact has been considered and is acceptable

This PR follows the approach from #51041 and currently includes only the
Wayland implementation.

[录屏 2026-06-01
23-11-17.webm](https://github.com/user-attachments/assets/c9f87503-4d64-4868-b9d8-5b832ade3e5a)



Release Notes:

- On Linux wayland, the IME is disabled in Vim normal and visual modes.
```

## Parents

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

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