mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-25 01:34:02 +00:00
catch keymap string only modifiers and no key
This commit is contained in:
parent
adf7578007
commit
3a456b09cb
1 changed files with 4 additions and 0 deletions
|
@ -301,6 +301,10 @@ impl Keystroke {
|
|||
}
|
||||
}
|
||||
|
||||
if key.is_none() {
|
||||
return Err(anyhow!("Invalid keystroke `{}`", source));
|
||||
}
|
||||
|
||||
Ok(Keystroke {
|
||||
ctrl,
|
||||
alt,
|
||||
|
|
Loading…
Reference in a new issue