-
Notifications
You must be signed in to change notification settings - Fork 614
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
Shift left/right not recognized anymore #611
Comments
FWIW: Works for me on normal us keyboard layout. |
Yea, works for me as well if I use the regular arrow key instead of the overlaid arrow key. The overlaid one used to work though at least in g0b03fc9. I’ll see if I can bisect. |
At first glance, it looks a lot like #354, but you’re saying it works in 0b03fc9, which will probably lead to a breakage in a9199e3, or maybe in 6f117c3? If the latter, please try |
git bisect gave me a9199e3 as the first bad commit. @sardemff7 If I bind |
Can you test the Btw, GTK+3 uses libxkbcommon on Wayland, but the old X11 code on X11. :-) |
@sardemff7 Thank you! On |
So it’s an issue with how I detect pressed and consumed modifiers. I’ll try to get your layout working here and do some tests. |
So that’s possible despite there being redirects? I mean, mpv seems to recognize the keys, but that seems surprising to me as well, in retrospect. In any case, if this only concerns adnw-gen generated layouts, don’t bother in case it’s too much work, since there’s probably only a handful of users. I’d go for the redirectless variant if this wouldn’t break other apps. The adnw variant shipped with Xorg seems to not suffer from this, but I was hoping I wouldn’t need to fork it (I have some keysym changes), and it looks like AdNW copy/paste keys (not supported by the stock Xorg layout) can only be implemented via redirects. |
I just realised what your |
Hum, I get it, it doesn’t just send a fake keycode, it sends a fake keyboard state too. Previous code used that state while new code is using the cached state. So it’s once again a really annoying X11 design decision that’s getting in the way. I’ll add a workaround at some point, just need to design it properly to fit Wayland too. |
Should be fixed in 8f8c43e, please let me know if it works. |
Thank you so much sardemmf7! This resolves the arrow-key issue, and the copy-paste keys work now, as well! ❤️ So if I understand correctly this only works because Xorg handles the redirects on the server side, so it probably won’t work under Wayland. But this ought to buy me some time, at least. Thanks again! |
Yes, on Wayland, clients just entirely rely on libxkbcommon to interpret keystrokes, and compositors too, actually, so redirects won’t work. But that means you can reliably test if things will work. :-) |
FTR I reported a bug against Xorg server because key redirects should send a |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Version
Version: 1.3.1 - 1.3.1-645-g252d89a1 (master)
Configuration
https://gist.github.com/anonymous/2060824de81bfb2f23d531692c503fb0
Steps to reproduce
Using the keyboard layout loaded from here, press shift + alt_gr+ qwertz-s.
What behaviour you see
Nothing happens.
What behaviour you expect to see
Switch to previous modi.
The text was updated successfully, but these errors were encountered: