Almost kinda functional description box

This commit is contained in:
2023-08-08 10:50:04 -06:00
parent d39acb0683
commit b24e0cdccd
16 changed files with 710 additions and 288 deletions
+23 -23
View File
@@ -17,29 +17,29 @@ generate_keybindings! {
}
pub struct KeyBinding {
pub key: Key,
pub desc: &'static str
pub key: Key,
pub desc: &'static str,
}
pub const DEFAULT_KEYBINDINGS: KeyBindings = KeyBindings {
quit: KeyBinding {
key: Key::Char('q'),
desc: "Quit",
},
up: KeyBinding {
key: Key::Up,
desc: "Scroll up"
},
down: KeyBinding {
key: Key::Down,
desc: "Scroll down"
},
submit: KeyBinding {
key: Key::Enter,
desc: "Select"
},
esc: KeyBinding {
key: Key::Esc,
desc: "Exit menu"
}
};
quit: KeyBinding {
key: Key::Char('q'),
desc: "Quit",
},
up: KeyBinding {
key: Key::Up,
desc: "Scroll up",
},
down: KeyBinding {
key: Key::Down,
desc: "Scroll down",
},
submit: KeyBinding {
key: Key::Enter,
desc: "Select",
},
esc: KeyBinding {
key: Key::Esc,
desc: "Exit current menu",
},
};