Skip to content
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

Hotkeys not working on Ubuntu 20.04 when Cyrillic locale is used #24499

Open
NikitaObukhov opened this issue Feb 8, 2025 · 1 comment
Open

Comments

@NikitaObukhov
Copy link

NikitaObukhov commented Feb 8, 2025

Summary

Steps to trigger the problem:

  1. Install latest Zed version on Ubuntu 20.04 with latest updates
  2. Have 2 locales in system, e.g. English and Russian
  3. Press ctrl+s when Russian locale is on.

Actual Behavior: file is not saved

Expected Behavior: file is saved

Same problems occurs with all other key bindings.

I tried to set use_layout_keys: true in my settings.json (btw it did not auto-suggest this key).
I also tried use_key_equivalents in keymap.json under all contexts. Did not helped either.

When I open Debug: open key context window, i press ctrl+s when russian locale is on and I see:
ctrl-cyrillic_yeru

I added "ctrl-cyrillic_yeru": "workspace::Save" to my keymap.json and it solved the problem. Maybe I could event generate all key bindings using Zed assistant and this will work. So this bug has a tricky workaround.

Still such nasty bugs may push new users away from this great editor.

Zed Version and System Specs

Zed: v0.172.10 (Zed)
OS: Linux X11 ubuntu 20.04
Memory: 94.3 GiB
Architecture: x86_64
GPU: NVIDIA GeForce RTX 3090 || NVIDIA || 565.57.01

@probably-neb
Copy link
Contributor

That is quite unfortunate indeed. I assume we're getting the Cyrillic key pressed events from the OS so this may be somewhat difficult to fix, but then again there is almost certainly prior art here.

Thanks for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants