InputTextMultiline() filtering out \r for now (#200)

This commit is contained in:
ocornut 2015-06-19 17:34:19 -06:00
parent 73db855c77
commit 1b28f11acb

View File

@ -6720,7 +6720,7 @@ static bool InputTextFilterCharacter(unsigned int* p_char, ImGuiInputTextFlags f
if (c < 128 && c != ' ' && !isprint((int)(c & 0xFF)))
{
bool pass = false;
pass |= ((c == '\n' || c == '\r') && (flags & ImGuiInputTextFlags_Multiline));
pass |= (c == '\n' && (flags & ImGuiInputTextFlags_Multiline));
pass |= (c == '\t' && (flags & ImGuiInputTextFlags_AllowTabInput));
if (!pass)
return false;