Cocoa: Fix regression in private use area check

This fixes a regression introduced by
ad9eb768c9.
This commit is contained in:
Camilla Löwy 2020-06-29 23:14:16 +02:00
parent ad9eb768c9
commit e47832ffcf

View File

@ -744,7 +744,7 @@ static const NSRange kEmptyRange = { NSNotFound, 0 };
range:range range:range
remainingRange:&range]) remainingRange:&range])
{ {
if ((codepoint & 0xff00) == 0xf700) if (codepoint >= 0xf700 && codepoint <= 0xf7ff)
continue; continue;
_glfwInputChar(window, codepoint, mods, plain); _glfwInputChar(window, codepoint, mods, plain);