mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-23 12:27:01 +00:00
Fix for AltGR being send as Ctrl&Alt on german keyboards. Don't consume characters if CTRL key press is detected AND ALT key press is detected in Imgui::InputTextEx
This commit is contained in:
parent
fae7b34a3f
commit
8a6bde3527
@ -7217,7 +7217,7 @@ bool ImGui::InputTextEx(const char* label, char* buf, int buf_size, const ImVec2
|
|||||||
if (g.IO.InputCharacters[0])
|
if (g.IO.InputCharacters[0])
|
||||||
{
|
{
|
||||||
// Process text input (before we check for Return because using some IME will effectively send a Return?)
|
// 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++)
|
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])
|
if (unsigned int c = (unsigned int)g.IO.InputCharacters[n])
|
||||||
|
Loading…
Reference in New Issue
Block a user