feat: shift + enter is now equal to shift + left mouse

This commit is contained in:
2026-01-25 00:20:55 +03:00
parent bae10edc99
commit f59050ef04
+11 -4
View File
@@ -21,10 +21,17 @@ impl SoundpadGui {
} }
if i.key_pressed(Key::Enter) && self.app_state.selected_file.is_some() { if i.key_pressed(Key::Enter) && self.app_state.selected_file.is_some() {
self.play_file( let path = &self.app_state.selected_file.clone().unwrap();
&self.app_state.selected_file.clone().unwrap(), if i.modifiers.ctrl {
i.modifiers.ctrl, self.play_file(path, true);
); } else if i.modifiers.shift
&& let Some(last_track) = self.audio_player_state.tracks.last()
{
self.stop(Some(last_track.id));
self.play_file(path, true);
} else {
self.play_file(path, false);
}
} }
if !self.app_state.show_settings { if !self.app_state.show_settings {