From c8cbe8c871df116c170d21312795370c9378f5c0 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 25 Sep 2017 17:58:21 +0300 Subject: [PATCH] feature(listeners) add ability to move files via shift + drag --- client/listeners/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/listeners/index.js b/client/listeners/index.js index 6df38853..02e5be21 100644 --- a/client/listeners/index.js +++ b/client/listeners/index.js @@ -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); }; /**