[READ-ONLY] Mirror of https://github.com/probablykasper/ferrum. Music library app for Mac, Linux and Windows ferrum.kasper.space
electron linux macos music music-library music-player napi windows
0

Configure Feed

Select the types of activity you want to include in your feed.

Re-add playing

Kasper (Sep 26, 2024, 3:20 AM +0200) b348515b b4e99552

+8 -7
+8 -7
src/components/TrackList.svelte
··· 145 145 } 146 146 async function keydown(e: KeyboardEvent) { 147 147 if (check_shortcut(e, 'Enter')) { 148 - // let first_index = selection.findFirst() 149 - // if (first_index !== null) { 150 - // play_row(first_index) 151 - // } else if (!$playing_id) { 152 - // play_row(0) 153 - // } 148 + let first_item_id = selection.find_first_index() 149 + if (first_item_id !== null) { 150 + play_row(first_item_id) 151 + } else if (!$playing_id) { 152 + play_row(0) 153 + } 154 154 } else if ( 155 155 check_shortcut(e, 'Backspace') && 156 156 $selection.size > 0 && ··· 180 180 } 181 181 182 182 function play_row(index: number) { 183 - // new_playback_instance(page.get_track_ids(), index) 183 + const all_track_ids = methods.get_track_ids(tracks_page.itemIds) 184 + new_playback_instance(all_track_ids, index) 184 185 } 185 186 186 187 let drag_line: HTMLElement