mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
feature(listeners) add ability to move files via shift + drag
This commit is contained in:
parent
0cef0c5971
commit
c8cbe8c871
1 changed files with 4 additions and 1 deletions
|
|
@ -420,7 +420,10 @@ function dragndrop() {
|
|||
if (dirFiles.length)
|
||||
return DOM.uploadDirectory(dirFiles);
|
||||
|
||||
return CloudCmd.Operation.show('copy');
|
||||
const {Operation} = CloudCmd;
|
||||
const operation = event.shiftKey ? 'move' : 'copy';
|
||||
|
||||
return Operation.show(operation);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue