From 46d62adc55bfecc59f9a63a565c31da7701226db Mon Sep 17 00:00:00 2001 From: Edouard Vanbelle Date: Sat, 4 Apr 2026 16:23:03 +0200 Subject: [PATCH] feat(item-selection): add ctrl/meta/alt key to toggle item selection --- static/js/app/ui.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/static/js/app/ui.js b/static/js/app/ui.js index 894d17ac..d9cc2dd2 100644 --- a/static/js/app/ui.js +++ b/static/js/app/ui.js @@ -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 {