mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
feat: allow multi-select with SHIFT key in singleClick mode (#3185)
This commit is contained in:
parent
a9c327cc06
commit
2e47a038d6
@ -210,8 +210,10 @@ const drop = async (event: Event) => {
|
|||||||
|
|
||||||
const itemClick = (event: Event | KeyboardEvent) => {
|
const itemClick = (event: Event | KeyboardEvent) => {
|
||||||
if (
|
if (
|
||||||
!((event as KeyboardEvent).ctrlKey || (event as KeyboardEvent).metaKey) &&
|
|
||||||
singleClick.value &&
|
singleClick.value &&
|
||||||
|
!(event as KeyboardEvent).ctrlKey &&
|
||||||
|
!(event as KeyboardEvent).metaKey &&
|
||||||
|
!(event as KeyboardEvent).shiftKey &&
|
||||||
!fileStore.multiple
|
!fileStore.multiple
|
||||||
)
|
)
|
||||||
open();
|
open();
|
||||||
|
Loading…
Reference in New Issue
Block a user