Merge pull request #1784 from zed-industries/fix-keymap-panic

Fix panic in keymap parsing
This commit is contained in:
Kay Simmons
2022-10-20 16:39:38 -07:00
committed by GitHub
+4
View File
@@ -301,6 +301,10 @@ impl Keystroke {
}
}
if key.is_none() {
return Err(anyhow!("Invalid keystroke `{}`", source));
}
Ok(Keystroke {
ctrl,
alt,