bugfix
This commit is contained in:
parent
e0f65229b6
commit
6ad8fd3d4f
|
@ -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);
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue