mirror of
https://github.com/Drezil/imgui.git
synced 2024-12-18 06:06:35 +00:00
InputTextMultiline() filtering out \r for now (#200)
This commit is contained in:
parent
73db855c77
commit
1b28f11acb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user