Always show all key bindings in F1 menu

This commit is contained in:
Joscha 2023-04-28 14:33:11 +02:00
parent 51b1953207
commit 1ce31b6677
6 changed files with 132 additions and 55 deletions

View file

@ -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])
}