# gpui: Prevent multi-modifier gestures from dispatching standalone modifiers \(\#62036\) · gitcafe/zed

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

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

Visibility: public

Requested revision: a8cae3bd77f6e1c1dde98bb1dcebba0d254dbd71

Requested commit: a8cae3bd77f6e1c1dde98bb1dcebba0d254dbd71

Commit: a8cae3bd77f6e1c1dde98bb1dcebba0d254dbd71

Tree: 73b47a71e720dfed42b3b4fd834e2df9a5abd8a8

Author: liam

Committer: GitHub

## Message

```
gpui: Prevent multi-modifier gestures from dispatching standalone modifiers (#62036)

Resolves #61888.

Multi-modifier gestures could leave GPUI’s standalone-modifier state
armed after one modifier was released. For example, releasing `Alt`
before `Shift` during an `Alt+Shift` gesture caused the final `Shift`
release to be synthesized as a standalone shift keystroke.

This diff invalidates standalone-modifier synthesis whenever multiple
modifiers are active, while preserving genuine modifier-only key
bindings.

Release Notes:
- Fixed Alt+Shift gestures potentially triggering standalone Shift key
bindings.
```

## Parents

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

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