git.lucas.co / cce-ui
GPU-accelerated UI toolkit (Vulkan)
git clone https://git.lucas.co/cce-ui.git

commit0311afa81a002e9b37a1a93680313ecd53d7921b
parentc4cd351724
authorLucas Galante <[email protected]>
date2026-05-28 21:19
fix: allow special characters in TextBox

 src/widget.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/widget.rs b/src/widget.rs
index ec573f7..2282928 100644
--- a/src/widget.rs
+++ b/src/widget.rs
@@ -5374,7 +5374,7 @@ impl Widget for TextBox {
                     }
                     let mut inserted_count = 0;
                     for ch in text.chars() {
-                        if ch.is_alphanumeric() || ch == ' ' || ch == '-' || ch == '_' || ch == '*' {
+                        if !ch.is_control() {
                             new_buf.push(ch);
                             inserted_count += 1;
                         }