This commit is contained in:
mattyatea 2023-10-11 06:19:14 +09:00
parent e0f65229b6
commit 6ad8fd3d4f
2 changed files with 4 additions and 2 deletions

View File

@ -78,7 +78,7 @@ watch(props.SelectFiles, () => {
});
function onClick(ev: MouseEvent) {
('onclick');
if (props.selectMode) {
emit('chosen', props.file);
} else if (!ev.shiftKey && !isTouchUsing && !isSelectedFile.value) {
@ -93,7 +93,7 @@ function onClick(ev: MouseEvent) {
}
function onContextmenu(ev: MouseEvent) {
('oncontext');
if (!isTouchUsing) {
if (!ev.shiftKey && !isSelectedFile.value) {
os.contextMenu(getDriveFileMenu(props.file, props.folder), ev);

View File

@ -22,6 +22,7 @@ SPDX-License-Identifier: AGPL-3.0-only
:folder="f"
:parentFolder="folder"
:class="[$style.navPathItem]"
:selectedFiles="selectedFiles"
@move="move"
@upload="upload"
@removeFile="removeFile"
@ -87,6 +88,7 @@ SPDX-License-Identifier: AGPL-3.0-only
:file="file"
:folder="folder"
:selectMode="select === 'file'"
:SelectFiles="selectedFiles"
:isSelected="selectedFiles.some(x => x.id === file.id)"
@click.shift.left.exact="filesSelect"
@chosen="chooseFile"