Initial Radarr ui!

This commit is contained in:
2023-08-08 10:50:04 -06:00
parent 3ae7e15961
commit 1ebf481326
11 changed files with 245 additions and 82 deletions
+13 -3
View File
@@ -9,17 +9,27 @@ macro_rules! generate_keybindings {
}
generate_keybindings! {
quit
quit,
up,
down
}
pub struct KeyBinding {
key: Key,
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"
}
};