-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linux Shortcuts don't work with non-latin / international keyboard layouts #14053
Comments
Can you provide some additional details:
|
|
KDE 6.1.2 Wayland |
same issue. ubuntu 24.04 gnome 46, qwerty/йцукен (eng/rus) |
GNOME 42.9, Wayland |
Not using the Russian layout but, using keycodes for stuff like the ` key instead of the actual character would help here as well |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment has been minimized.
This comment has been minimized.
@brookback Please file a new issue as your issue on MacOS is likely distinct. Please include full reproduction steps if possible. Thanks. |
same issue. nixos-unstable hyprland 0.42.0, qwerty/йцукен (eng/rus) |
Same issue on Ubuntu 24.04 LTS, Wayland session, Canadian Multilingual layout. Mapping on the Quote ' key does not work (it's "è"), nor does the \ key (it's "à"). In VS Code, it maps |
There is an active discussion going on here: We'd love to gather input from folks who are using international keyboards with Zed. |
v0.162.x fixes most problems for macOS, so now Linux... The goal here is to make the gpui platform implementation consistent with the macOS one, so:
I took a bit of a look, and found that the first problem is that for non-Latin layouts that should have a different character when the platform modifier is pressed, we don't correctly read that even though If anyone has done key handling on Linux before, I'd love to pair with you: https://calendly.com/conradirwin/pairing. |
yeaaaahhh i have the same issue qwerty/йцукен (eng(US)/rus) |
@VyacheslavKuchumov are you on macOS or Linux? If Linux, are you on Wayland or X11, and which IME system do you use? |
Same issue with Ukrainian (QWERTY/ЙЦУКЕН) on Linux (Fedora Workstation), Wayland, GNOME 47 Besides from mentioned above with extended keyboards and modifiers, I'm wondering is there anything blocking to use key/scan codes rather than key names? I.e. instead of mapping dozens of keys like |
@ExposedCat I'd like this to work by default - so we don't need mappings in most cases. How other apps on Linux work; but it's not totally clear to me (and probably not as standardized as it is on macOS). For example I know if I use a Cyrillic keyboard, then shortcuts like ctrl-shift-n for new window in Gnome terminal still work. Is that because they are bound to the key code, or is it because they are bound to a layer on your keyboard that generates ASCII still? |
@ConradIrwin can this be used? However I'm not sure how to get these codes from rust without root access to |
Has this issue been resolved? I am using a Macbook Pro M4 with a Swedish layout. Shortcuts like toggling line comments do not work with swedish input. |
@RasmusHogslatt on a Swedish keyboard toggle comments is now cmd-´ ![]() |
@ConradIrwin I got back and tried this. Your comment was correct, and it reflects my setup, but for whatever reason, instead of toggling comments it opens the "Help" window for zed in the top menubar. Is that expected behaviour? |
@RasmusHogslatt that is not expected; part of the reason to move these shortcuts around is to avoid the builtin macOS shortcuts. Are you also using the Swedish locale? What's the default help menu shortcut? |
I'm also using the Swedish layout, and can reproduce what @RasmusHogslatt is running into: when using the keyboard shortcut, the native macOS help menu is shown instead. (It's been like this for a long time, so I just rebinded the shortcut to something else.) Edit: I have a theory it's like this:
|
Should we adjust the macOS Swedish layout equivalents to be less intrusive by default?
What is the default help shortcut in the Swedish locale? I also want to make sure we're not going to crash into it. See also #20425 (comment) for similar woes with German and a proposed new default. |
same issue with en/ru kb layout. endeavouros arch distro, x11 desktop (awesome) |
I have same issue, shortcuts like |
There was a similar problem for Cyrillic keyboard on Ubuntu. I share the solution
|
@neodraw - amazing, thank you |
Check for existing issues
Describe the bug / provide steps to reproduce it
If you switch the keyboard layout to another language, the hotkeys stop working. For example ctrl + s or ctrl + c
Environment
zed installed for arch linux https://archlinux.org/packages/extra/x86_64/zed/
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your Zed.log file to this issue.
Zed.log
The text was updated successfully, but these errors were encountered: