Always show all key bindings in F1 menu
This commit is contained in:
parent
51b1953207
commit
1ce31b6677
6 changed files with 132 additions and 55 deletions
|
|
@ -177,6 +177,10 @@ impl KeyBinding {
|
|||
Self(vec![])
|
||||
}
|
||||
|
||||
pub fn keys(&self) -> &[KeyPress] {
|
||||
&self.0
|
||||
}
|
||||
|
||||
pub fn with_key(self, key: &str) -> Result<Self, ParseKeysError> {
|
||||
self.with_keys([key])
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue