windows: Remove null terminator from keyboard ID (#41785)
Antal Szabó
created
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.