GPU-accelerated UI toolkit (Vulkan)
git clone https://git.lucas.co/cce-ui.git
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;
}