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

Fix for not being able to enter certain characters in InputText on german keyboard #369

Merged
merged 1 commit into from
Oct 11, 2015

Conversation

richardkogelnig
Copy link
Contributor

Problem:

On german keyboards the user can't enter lots of chars which use AltGr as a modifier (e.g '{' '[' ']' '}' '' ) because of:
“Alt Gr” on german (and other) keyboards – “Alt Gr” is not the same as right-hand “Alt” on US keyboards, it essentially is a short-cut for “Control” and right-hand “Alt”. (from http://blog.molecular-matters.com/2011/09/05/properly-handling-keyboard-input/)

With the existing code all chars are suppressed when CTRL-press is detected.

Solution:

Don't suppress characters if CTRL AND ALT key press is detected in Imgui::InputTextEx.

Ctrl+C, Ctrl+V etc still work as expected.

…me characters if CTRL key press is detected AND ALT key press is detected in Imgui::InputTextEx
ocornut added a commit that referenced this pull request Oct 11, 2015
InputText: Fix for not being able to enter certain characters in InputText on german keyboard
@ocornut ocornut merged commit b93e787 into ocornut:master Oct 11, 2015
ocornut added a commit that referenced this pull request Oct 11, 2015
ocornut added a commit that referenced this pull request Feb 23, 2019
ocornut added a commit that referenced this pull request Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants