mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
add item selection to double click handler
This commit is contained in:
@@ -144,11 +144,13 @@ export const useDefaultItemListControls = () => {
|
||||
}
|
||||
},
|
||||
|
||||
onDoubleClick: ({ item, itemType }: DefaultItemControlProps) => {
|
||||
if (!item) {
|
||||
onDoubleClick: ({ internalState, item, itemType }: DefaultItemControlProps) => {
|
||||
if (!item || !internalState) {
|
||||
return;
|
||||
}
|
||||
|
||||
internalState.setSelected([item]);
|
||||
|
||||
if (itemType === LibraryItem.QUEUE_SONG) {
|
||||
const queueSong = item as QueueSong;
|
||||
if (queueSong._uniqueId) {
|
||||
|
||||
Reference in New Issue
Block a user