From 8e4f5f4e17614e64c1a2edddf1d92761691e6d9c Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Wed, 8 Apr 2026 12:21:08 +0200 Subject: [PATCH] fix(gui): private use unicode codepoints are not text --- src/gui/wio/app.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/wio/app.zig b/src/gui/wio/app.zig index 0f8c4b2b..db02d154 100644 --- a/src/gui/wio/app.zig +++ b/src/gui/wio/app.zig @@ -658,7 +658,7 @@ fn sendKey(kind: u8, codepoint: u21, shifted_codepoint: u21, mods: input_transla // Text is the character that would be typed: empty when ctrl/alt active, // shifted_codepoint when shift is held, otherwise codepoint. const text_cp: u21 = if (mods.shift) shifted_codepoint else codepoint; - const text_len: usize = if (!mods.ctrl and !mods.alt and text_cp >= 0x20 and text_cp != 0x7f) + const text_len: usize = if (!mods.ctrl and !mods.alt and text_cp >= 0x20 and text_cp != 0x7f and text_cp < 0xE000) std.unicode.utf8Encode(text_cp, &text_buf) catch 0 else 0;