mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +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) => {
|
onDoubleClick: ({ internalState, item, itemType }: DefaultItemControlProps) => {
|
||||||
if (!item) {
|
if (!item || !internalState) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
internalState.setSelected([item]);
|
||||||
|
|
||||||
if (itemType === LibraryItem.QUEUE_SONG) {
|
if (itemType === LibraryItem.QUEUE_SONG) {
|
||||||
const queueSong = item as QueueSong;
|
const queueSong = item as QueueSong;
|
||||||
if (queueSong._uniqueId) {
|
if (queueSong._uniqueId) {
|
||||||
|
|||||||
Reference in New Issue
Block a user