Skip to content

Conversation

@Sh4rK
Copy link
Contributor

@Sh4rK Sh4rK commented Nov 3, 2025

Closes #41486, closes #35862

It is unnecessary, and it broke the uses_altgr function.

Also add Slovenian layout as using AltGr.

This should fix:

As the current strategy relies on manually adding layouts that have AltGr, it's brittle and not very elegant. It also has other issues (it requests the current layout on every kesytroke and mouse movement).

A potentially better and more comprehensive solution is at #41259
This is just to fix the immediate issues while that gets reviewed.

Release Notes:

  • windows: Fix AltGr handling on non-US layouts again.

It is unnecessary, and it broke the `uses_altgr` function.

Also add Slovenian layout as using AltGr.
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Nov 3, 2025
@zed-industries-bot
Copy link

Messages
📖

This PR includes links to the following GitHub Issues: #- 41486, #- 35862
If this PR aims to close an issue, please include a Closes #ISSUE line at the top of the PR body.

Generated by 🚫 dangerJS against b243c03

@nia-e nia-e self-assigned this Nov 3, 2025
@nia-e
Copy link
Member

nia-e commented Nov 3, 2025

Looks good, thanks for the fix ^^

@nia-e nia-e merged commit 71f1f37 into zed-industries:main Nov 3, 2025
34 checks passed
@Sh4rK
Copy link
Contributor Author

Sh4rK commented Nov 3, 2025

Thanks!

@nia-e Not trying to tell you what to do, just signal boosting, if you have the capacity you should take a look at #41259 because it seems to properly solve the AltGr issue without hard-coding specific languages (and without the current problem of requesting the layout on every event). It also supposedly solves other issues as well. I'm not an expert in Windows input handling, so I can't give much input on it, but I think it's worth a look.

@Sh4rK Sh4rK deleted the altgr-fix-2 branch November 3, 2025 21:13
@Sh4rK
Copy link
Contributor Author

Sh4rK commented Nov 3, 2025

@nia-e Oh, never mind, the creator of that PR is also a member of Zed :D

P1n3appl3 pushed a commit to bnjjj/zed that referenced this pull request Nov 4, 2025
Closes zed-industries#41486, closes zed-industries#35862 

It is unnecessary, and it broke the `uses_altgr` function.

Also add Slovenian layout as using AltGr.

This should fix:
-
zed-industries#40536 (comment)
- zed-industries#41486
- zed-industries#35862

As the current strategy relies on manually adding layouts that have
AltGr, it's brittle and not very elegant. It also has other issues (it
requests the current layout on every kesytroke and mouse movement).

**A potentially better and more comprehensive solution is at
zed-industries#41259
This is just to fix the immediate issues while that gets reviewed.

Release Notes:

- windows: Fix AltGr handling on non-US layouts again.
tomatitito pushed a commit to tomatitito/zed that referenced this pull request Nov 7, 2025
Closes zed-industries#41486, closes zed-industries#35862 

It is unnecessary, and it broke the `uses_altgr` function.

Also add Slovenian layout as using AltGr.

This should fix:
-
zed-industries#40536 (comment)
- zed-industries#41486
- zed-industries#35862

As the current strategy relies on manually adding layouts that have
AltGr, it's brittle and not very elegant. It also has other issues (it
requests the current layout on every kesytroke and mouse movement).

**A potentially better and more comprehensive solution is at
zed-industries#41259
This is just to fix the immediate issues while that gets reviewed.

Release Notes:

- windows: Fix AltGr handling on non-US layouts again.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows: AltGr not working on Croatian keyboard Can't insert curly brace with German keyboard layout on Windows

5 participants