From a978af50d0a26c41447dc8dad7829dde80a60a7c Mon Sep 17 00:00:00 2001 From: Bruno Calza Date: Fri, 18 Oct 2024 10:35:08 -0300 Subject: [PATCH] fix: empty keystroke with simulated ime Signed-off-by: Bruno Calza --- crates/gpui/src/platform/keystroke.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/gpui/src/platform/keystroke.rs b/crates/gpui/src/platform/keystroke.rs index 89ab8c166cd0c..6e0da7dac22ae 100644 --- a/crates/gpui/src/platform/keystroke.rs +++ b/crates/gpui/src/platform/keystroke.rs @@ -146,7 +146,7 @@ impl Keystroke { "space" => Some(" ".into()), "tab" => Some("\t".into()), "enter" => Some("\n".into()), - key if !is_printable_key(key) => None, + key if !is_printable_key(key) || key.is_empty() => None, key => { if self.modifiers.shift { Some(key.to_uppercase())