-
Notifications
You must be signed in to change notification settings - Fork 924
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
Ctrl is reported as not pressed when combining Ctrl+Altgr on Windows #3012
Comments
This is probably some side effect of trying to deal with the fact that in Windows, |
This is probably also related #2945 |
I just realized that this is more critical than what it seems. I did not think of it at first, but this breaks the default mapping I'm using a custom mapping myself, so I did not think of it, but I recently had to do some testing with a clean nvim configuration, and had big problems. I almost ran into the meme of not being able to exit vim. But fortunately, you can type |
On Windows, when pressing a key in combination with altgr for example
ctrl+alt-gr+e
, which produces€
, the CTRL state is not reported correctly. Here's the log fromWindowEvent::KeyboardEvent
, andWindowEvent::ModifiersChanged
As soon as
AltGraph
is pressedModifiers::state
stops reportingControl
, and only starts reporting it again whenAltGr
is released. Therefore, it's impossible to determine that control is held down using the modifiers state alone.Note that there's also another, not as critical bug shown in the logs,
AltGraph
is repeated, although I don't think there should be a key repeat on that since it's a modifier, I'm not even sure if it makes sense to report it as a key press at all, rather than a modifier state.This was reproduced using Neovide and Winit 0.29.0-beta.0
I think a similar issue was reported by @dhardy here in this comment #2898 (comment)
The text was updated successfully, but these errors were encountered: