Allow everything Unicode except noncharacters and control characters
Thanks mniip, see a113cbe
.
This commit is contained in:
parent
a113cbe57d
commit
21b9e1a645
@ -263,7 +263,7 @@ bool Textbox::CharacterValid(int character)
|
||||
return true;
|
||||
case All:
|
||||
default:
|
||||
return character >= ' ';
|
||||
return character >= ' ' && character <= 0x10FFFF && !(character >= 0xD800 && character <= 0xDFFF) && !(character >= 0xFDD0 && character <= 0xFDEF) && !((character & 0xFFFF) >= 0xFFFE);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user