BMenu: Look for ASCII characters < 128, not < 255.
Otherwise we will include ISO 8859-15 (é, à, etc.) Thanks to PulkoMandy for pointing this out!
This commit is contained in:
parent
5c8f9c2b0c
commit
0a973154a8
@ -2883,7 +2883,7 @@ BMenu::_ChooseTrigger(const char* title, int32& index, uint32& trigger,
|
|||||||
nextCharacter = title;
|
nextCharacter = title;
|
||||||
character = nextCharacter;
|
character = nextCharacter;
|
||||||
while ((c = BUnicodeChar::FromUTF8(&nextCharacter)) != 0) {
|
while ((c = BUnicodeChar::FromUTF8(&nextCharacter)) != 0) {
|
||||||
if (!(c < 255 && BUnicodeChar::IsAlNum(c)) || triggers.HasTrigger(c)) {
|
if (!(c < 128 && BUnicodeChar::IsAlNum(c)) || triggers.HasTrigger(c)) {
|
||||||
character = nextCharacter;
|
character = nextCharacter;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user