-
Notifications
You must be signed in to change notification settings - Fork 492
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
Manage AltGr key combinations in windows backends #1088
Comments
Hmm, I don't have an immediate idea for a robust solution, but there's a related recent ticket here: ...the code almost certainly exists because of combinations like Ctrl+X/C/P, so maybe we can just remove the ALT modifier from the mask. |
Modifiers could be removed when ALT and Ctrl are used together. |
On my keyboard, the '#' character is generated by the combination 'AltGr'+'3' in the same way that on many European keyboards the '€' symbol is generated by 'AltGr'+'e'
For the reason explained in a previous comment in the code, this combination is prohibited in sokol_imgui.h, line 3132.
Commenting out that line makes the problem disappear, although I think a better solution would be to put some mask on the key modifiers in the Windows backend to prevent the "AltGr" modifier from being sent in the SAPP_EVENTTYPE_CHAR event.
The text was updated successfully, but these errors were encountered: