From 0a1d6b6b74023039e3ec71ad8ad593fedc9cac83 Mon Sep 17 00:00:00 2001 From: ocornut Date: Wed, 16 Sep 2015 10:38:42 +0100 Subject: [PATCH] InputText() fixed ignoring text inputs when ALT is pressed (#334) --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index 0c86ae26..531916b0 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -7177,7 +7177,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_alt_down && is_editable) + if (!is_ctrl_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])