# X11: Don't emit keypress events for modifiers \(\#10271\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 4151ba13a138cef88fabb053119a507c15d49271

Requested commit: 4151ba13a138cef88fabb053119a507c15d49271

Commit: 4151ba13a138cef88fabb053119a507c15d49271

Tree: be4414a34dc913c3d7b9324d5181a8355a704577

Author: Kamal Ahmad

Committer: GitHub

## Message

```
X11: Don't emit keypress events for modifiers (#10271)

This fixes certain shortcuts/motions on X11 like in vim mode "v i )",
where previously zed would interpret it as "v i SHIFT )" due to the x11
backend emitting key press events for modifier keys even though other
platforms like Wayland don't. This also adds support for
ModifiersChanged events to X11

Release Notes:

- Fixed vim motions like "v i )" not working on X11
([#10199](https://github.com/zed-industries/zed/issues/10199)).
```

## Parents

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

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