# windows: Remove null terminator from keyboard ID \(\#41785\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 71f1f3728d22b6fa59549316e79c3d78390b205f

Requested commit: 71f1f3728d22b6fa59549316e79c3d78390b205f

Commit: 71f1f3728d22b6fa59549316e79c3d78390b205f

Tree: 29b143e898671433d70ff3d3e8e923986a49482b

Author: Antal Szabó

Committer: GitHub

## Message

```
windows: Remove null terminator from keyboard ID (#41785)

Closes #41486, closes #35862 

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

Also add Slovenian layout as using AltGr.

This should fix:
-
https://github.com/zed-industries/zed/pull/40536#issuecomment-3477121224
- https://github.com/zed-industries/zed/issues/41486
- https://github.com/zed-industries/zed/issues/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
https://github.com/zed-industries/zed/pull/41259**
This is just to fix the immediate issues while that gets reviewed.

Release Notes:

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

## Parents

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

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