diff --git a/crates/gpui/src/keymap.rs b/crates/gpui/src/keymap.rs index c408c98960..5d000081cf 100644 --- a/crates/gpui/src/keymap.rs +++ b/crates/gpui/src/keymap.rs @@ -301,6 +301,10 @@ impl Keystroke { } } + if key.is_none() { + return Err(anyhow!("Invalid keystroke `{}`", source)); + } + Ok(Keystroke { ctrl, alt,