-
Notifications
You must be signed in to change notification settings - Fork 123
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
How to clear modifier without RedirectKey? #145
Comments
Implementing full support of |
I use the neo layout and layer 4 (the navigation layer) uses modifiers to input arrow keys, return, backspace, delete and home/end. I use the following
|
I am using Vim-like arrow keys as detailed in the Arch Wiki. This also only needs the support for clearing modifiers. |
My usecase for clearMods: I'm trying to make On X this could be done with:
On Wayland I have not yet found a viable option (without clearMods). |
I also need clearmods because I've mapped my cursor keys to the home row and Chrome and other apps like Gnome file manager seem to look at keycodes and not keysyms. For Chrome, I can make it use X11 as a workaround (using ozone setting). |
@ronny-rentner have you reported the issue to the respective projects? Their keyboard handling looks wrong. Meanwhile, you may want to have a look at solutions such as |
@wismill Last time I checked, only very few apps handled keyboard correctly. Creating issues in hundreds of projects is a waste of time, they will not be fixed. This really needs to be fixed here. |
So I checked if we could implement at least the XOrg implement So this is a feature that should be implemented at compositor level. @whot @bluetech we could, however, add new minimal API:
Then the compositor may detect there is a key redirection looking for
Is it likely that compositors will implement this? We would need to consult at least KDE & Gnome. |
Hi, I'm trying to remap Super+C to Ctrl+C using xkb, but I don't want to remap Super to Ctrl because I'm still using Super for other shortcuts. I have achieved this X using
interpret F13 { RedirectKey(keys=c,modifiers=Control,clearmodifiers=Super) }
and set symbols c to[c, C, F13]
I have tried set symbols c to
[c, C, XF86Copy]
on Mod4 xkb type but XF86Copy doesn't work with some applications because I still have modifier Super set when pressing Super+CIt would be great to have a way to clear modifier without using RedirectKey, or should I do something else.
The text was updated successfully, but these errors were encountered: