feat: allow multi-select with SHIFT key in singleClick mode (#3185)

This commit is contained in:
Andrés Bono 2024-05-03 12:40:39 +02:00 committed by GitHub
parent a9c327cc06
commit 2e47a038d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -210,8 +210,10 @@ const drop = async (event: Event) => {
const itemClick = (event: Event | KeyboardEvent) => {
if (
!((event as KeyboardEvent).ctrlKey || (event as KeyboardEvent).metaKey) &&
singleClick.value &&
!(event as KeyboardEvent).ctrlKey &&
!(event as KeyboardEvent).metaKey &&
!(event as KeyboardEvent).shiftKey &&
!fileStore.multiple
)
open();