aboutsummaryrefslogtreecommitdiff
path: root/src/handler.rs
diff options
context:
space:
mode:
authorkrolxon <krolyxon@tutanota.com>2024-04-27 13:22:55 +0530
committerkrolxon <krolyxon@tutanota.com>2024-04-27 13:22:55 +0530
commitad2e99ce76cffc94d04730243f8724af518b98e3 (patch)
tree63bba609213d077762cc9bb88f0ed06c6d6049c0 /src/handler.rs
parent255687be7cb6e6314f2c6f56c098d5113c1c091a (diff)
added keybind to remove highlighted song from queue
Diffstat (limited to 'src/handler.rs')
-rwxr-xr-xsrc/handler.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/handler.rs b/src/handler.rs
index c3b001e..2a18a1c 100755
--- a/src/handler.rs
+++ b/src/handler.rs
@@ -284,6 +284,11 @@ pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<()> {
app.inputmode = InputMode::toggle_editing_states(&app.inputmode);
}
+ // Remove from Current Playlsit
+ KeyCode::Backspace => {
+ app.remove_from_current_playlist();
+ }
+
_ => {}
}
}