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

Caps lock remap being ignored #2199

Open
jisensee opened this issue Jul 30, 2020 · 8 comments
Open

Caps lock remap being ignored #2199

jisensee opened this issue Jul 30, 2020 · 8 comments
Labels
A-input Area: Input management, keyboard layout, IME etc. bug Something isn't working

Comments

@jisensee
Copy link

Problem

I have caps lock remapped to ctrl on Fedora but oni is not picking up on that. Everywhere else it works, so this seems to be an oni bug.

Reproduction

Run gsettings set org.gnome.desktop.input-sources xkb-options "['caps:ctrl_modifier']" to remap the key.
Try using caps lock instead of ctrl in oni - doesnt work.

Might be related to #2164 and #557 not sure. Feel free to close this if you rather track this in one of the other issues.

@bryphe bryphe added the A-input Area: Input management, keyboard layout, IME etc. label Jul 30, 2020
@bryphe
Copy link
Member

bryphe commented Jul 30, 2020

Thanks for logging the issue, @jisensee !

I know SDL does some special handling around CapsLock (in that the keyboard events bubble up differently vs other keys). I'll keep this separate from #2164 and #557 since it may be CapsLock specific 👍

@bryphe bryphe added the bug Something isn't working label Jul 30, 2020
@kartynnik
Copy link

Reproduces on Debian under Cinnamon as well (where it is controlled by gsettings set org.gnome.libgnomekbd.keyboard options "['caps\tcaps:ctrl_modifier']").

@bryphe
Copy link
Member

bryphe commented Jan 6, 2021

Does setxkbmap work?

IE:

setxkbmap -option ctrl:nocaps

@jisensee
Copy link
Author

jisensee commented Jan 9, 2021

I changed my setup recently, I no longer use Fedora or software key remaps anymore (got a new fancy keyboard to take care of this now). So unfortunately cant give any feedback an this issue. However, iirc setxbmap worked for me back then.

@JakobOlsson
Copy link

I can confirm, Running Fedora 33 with Gnome and using Gnome Tweaks to override CAPS and have it Send Ctrl does not work in Onivim2. It works fine in Neovim, Firefox, Chrome/Chromium, etc.
Pressing CAPS+P or CAPS+SHIFT+P does nothing in Onivim 2 (0.5.9-nightly | 22e5bf4)
But running setxkbmap -option ctrl:nocaps and then Launching same version of Onivim2, both key combination above works and bring up Buffer/File search and Command Search like as CTRL was pressed.

@vdwees
Copy link

vdwees commented Jan 26, 2021

I had this issue and was able to fix it in the tweak tool by modifying the remap in two places (I am on pop os):
image
image

@JakobOlsson
Copy link

JakobOlsson commented Jan 27, 2021

Thank You @vdwees, that worked with Gnome 3.38 on Fedora 33 also. CAPS now registers as CTRL key in Onivim2.
I only had the first of the "Tweaks" enabled, "Caps Lock behavior", once I also enabled the second "Tweak" - "Ctrl position", as shown in the screenshots, it worked.

@rogererens
Copy link
Contributor

rogererens commented Jul 24, 2021

Also OpenSUSE Tumbleweed with KDE needs the 2 settings as indicated by @vdwees to have CAPS LOCK recognized as CTRL in Onivim, too.
Thanks for pointing this out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-input Area: Input management, keyboard layout, IME etc. bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants