# gpui_linux: Disable IME in project panel when no input handler on Wayland \(\#63776\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 4a217d5316887826a21c554650c1ece6d51fff2a

Requested commit: 4a217d5316887826a21c554650c1ece6d51fff2a

Commit: 4a217d5316887826a21c554650c1ece6d51fff2a

Tree: 13bc15ab2e9ed232cfa6f2afbc105c03da131960

Author: Sha1rholder

Committer: GitHub

## Message

```
gpui_linux: Disable IME in project panel when no input handler on Wayland (#63776)

# Objective

Fixes #63774

## Solution

On Wayland, the IME remained enabled when the focused control did not
register a text input handler. This allowed IME to intercept ABC...Z
character shortcuts in non-text UI, including the Project Panel outside
filename editing. However Windows 11 doesn't have this problem.

Fixed it by treating a missing input handler as not accepting text
input.

## Testing

I've tested on both Vim/Helix mode and normal mode with Vim/Helix
keybinds. All clear now.

## Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

## Showcase


[after.webm](https://github.com/user-attachments/assets/91743d71-05c5-49d2-b032-4aebc8e91496)

ABC...Z character shortcuts are not going to be intercepted by IME
unexpectedly in project panel now.

---

Release Notes:

- Fixed IME remains enabled in project panel without a focused text
input in Wayland #63774
```

## Parents

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

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