From e47832ffcf924a0580ce79431b9601f0ca0915ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Mon, 29 Jun 2020 23:14:16 +0200 Subject: [PATCH] Cocoa: Fix regression in private use area check This fixes a regression introduced by ad9eb768c9518dbe94232e5201d318d512ad9beb. --- src/cocoa_window.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cocoa_window.m b/src/cocoa_window.m index d7ded30a..e34fb876 100644 --- a/src/cocoa_window.m +++ b/src/cocoa_window.m @@ -744,7 +744,7 @@ static const NSRange kEmptyRange = { NSNotFound, 0 }; range:range remainingRange:&range]) { - if ((codepoint & 0xff00) == 0xf700) + if (codepoint >= 0xf700 && codepoint <= 0xf7ff) continue; _glfwInputChar(window, codepoint, mods, plain);