# Fix ctrl click to open file on windows \(\#12294\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b1cfd46d3795454b38f6bad7aa09556305cb07f4

Requested commit: b1cfd46d3795454b38f6bad7aa09556305cb07f4

Commit: b1cfd46d3795454b38f6bad7aa09556305cb07f4

Tree: fa5f451b651eeb8e9fb72b9607167ae7f0b2dbb4

Author: Jakob Hellermann

Committer: GitHub

## Message

```
Fix ctrl click to open file on windows (#12294)

There were two issues:
1. the `ModifiersChanged` event was never emitted on windows.
macOS, x11 and wayland have separate events for this, while on windows
they are sent via the usual `keyup` and `keydown` events, but
`parse_keydown_msg_keystroke` just ignored them.
2. the word segmenting regex didn't include '\' so paths weren't
correctly detected

fixes https://github.com/zed-industries/zed/issues/12321

Release Notes:

- N/A
```

## Parents

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

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