feat(item-selection): add ctrl/meta/alt key to toggle item selection

This commit is contained in:
Edouard Vanbelle
2026-04-04 16:23:03 +02:00
parent 3157d6ef64
commit 46d62adc55
+8
View File
@@ -908,6 +908,14 @@ const ui = {
const info = itemInfo(card);
if (!info) return;
// use modifier key to select/deselect item
// note: shift key is used in multiselect
// note: on MacOS, ctrl Key is used to convert click into right click, which invoke the `contextmenu` event
if (e.metaKey || e.altKey || e.ctrlKey) {
toggleCardSelection(card, e);
return;
}
if (info.type === 'folder') {
navigateFolder(card);
} else {