Added delete movie functionality

This commit is contained in:
Dark-Alex-17 committed 2023-08-08 10:50:04 -06:00
1 parent 24a36443e9
commit cd0cf2e04a
13 files changed
+360 -104

No files matched your search

+17 -12
View File
@@ -9,18 +9,19 @@ macro_rules! generate_keybindings {
}
generate_keybindings! {
up,
down,
left,
right,
backspace,
search,
filter,
home,
end,
submit,
quit,
esc
up,
down,
left,
right,
backspace,
search,
filter,
home,
end,
delete,
submit,
quit,
esc
}
pub struct KeyBinding {
@@ -65,6 +66,10 @@ pub const DEFAULT_KEYBINDINGS: KeyBindings = KeyBindings {
key: Key::End,
desc: "End",
},
delete: KeyBinding {
key: Key::Delete,
desc: "Delete selected item",
},
submit: KeyBinding {
key: Key::Enter,
desc: "Select",