zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
46.78k stars 2.67k forks source link

CapsLock not working: Linux #13936

Open cdelv opened 2 months ago

cdelv commented 2 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

I installed Zed today (Jul 8) following the instructions for Linux: rustup update script/linux ./script/install-linux

After testing some things (This is my first time trying Zed) I noticed that CapsLock does not work. With or without Vim mode enable. Shift + Key works for Caps.

Environment

Zed: v0.144.0 (Zed Dev c617d48e16c17a041d98dbe33a967dd1c1a35d13) OS: Linux X11 pop 22.04 Memory: 27.1 GiB Architecture: x86_64

Kernel: 6.9.3-76060903-generic CPU: AMD Ryzen 9 6900HS Creator Editi GPU: NVIDIA GeForce RTX 3050 Mobile GPU: AMD ATI 04:00.0 Rembrandt

I can't tell if it's using the dedicated GPU or not.

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

Zed.log


taosx commented 2 months ago

I have the same issue using 0.143.4 downloaded from the releases. Basically it doesn't detect that I press caps lock but pressing the shift key works.

Not sure if it's going to help during debugging but If spam capslock while pressing any character on the keyboard sometimes it detects and toggles caps lock.

If I run zed with sudo, caps lock works as it's supposed to.

Edit: for now I could fix it by running setxkbmap in the terminal.

Environment

Zed: v0.144 OS: Linux X11 pop 22.04 Memory: 64 GiB Architecture: x86_64

Kernel: 6.9.3-76060903-generic CPU: AMD Ryzen 9 3950X GPU: NVIDIA GeForce RTX 2070S

algo7 commented 2 months ago

In my case, I can't toggle and have to continuously hold down the capslock or the shift button to be able to type upper case characters. I don't know if it's an intended behavior and can be customized or a bug.

Running setxkbmap as suggested by @taosx doesn't seem to work in my case. But running zed with sudo seems to work.

Environment

Zed: v0.144 via curl https://zed.dev/install.sh | ZED_CHANNEL=preview sh OS: Ubuntu 22.04.2 LTS Desktop Environment: X11 Memory: 64 GiB Architecture: x86_64

Kernel: 6.5.0-41-generic CPU: AMD Ryzen 9 5900x GPU: Nvidia GeForce RTX 3080

SHREYAS290601 commented 2 months ago

Temp fix: use shift + capslock, works on ubuntu zed 0.143

inteltank1 commented 1 month ago

Hello, I believe this issue has been fixed on branch #14466 . If so, this issue can be closed.

Thanks.