Skip to content

Commit

Permalink
Merge pull request #369 from richardkogelnig/master
Browse files Browse the repository at this point in the history
InputText: Fix for not being able to enter certain characters in InputText on german keyboard
  • Loading branch information
ocornut committed Oct 11, 2015
2 parents fae7b34 + 8a6bde3 commit b93e787
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7217,7 +7217,7 @@ bool ImGui::InputTextEx(const char* label, char* buf, int buf_size, const ImVec2
if (g.IO.InputCharacters[0])
{
// Process text input (before we check for Return because using some IME will effectively send a Return?)
if (!is_ctrl_down && is_editable)
if (!(is_ctrl_down && !is_alt_down) && is_editable)
{
for (int n = 0; n < IM_ARRAYSIZE(g.IO.InputCharacters) && g.IO.InputCharacters[n]; n++)
if (unsigned int c = (unsigned int)g.IO.InputCharacters[n])
Expand Down

0 comments on commit b93e787

Please sign in to comment.