filemanager: Select entry on context menu button clicked

This commit is contained in:
Johannes Zellner
2021-03-16 18:11:28 +01:00
parent 168636e493
commit 0abf1e76d4
2 changed files with 6 additions and 1 deletions

View File

@@ -423,6 +423,11 @@ app.controller('FileManagerController', ['$scope', '$translate', '$timeout', 'Cl
}
};
$scope.onEntryContextMenu = function ($event, entry) {
if ($scope.selected.indexOf(entry) !== -1) return;
$scope.selected.push(entry);
};
$scope.actionCut = function () {
$scope.clipboard = $scope.selected.slice();
$scope.clipboard.forEach(function (entry) {