catch keymap string only modifiers and no key

This commit is contained in:
K Simmons 2022-10-20 16:30:07 -07:00
parent adf7578007
commit 3a456b09cb

View file

@ -301,6 +301,10 @@ impl Keystroke {
}
}
if key.is_none() {
return Err(anyhow!("Invalid keystroke `{}`", source));
}
Ok(Keystroke {
ctrl,
alt,